From 0e120f4ab31d92de37e421083a0ab4a18e645f5a Mon Sep 17 00:00:00 2001 From: Ben Karl <5302342+BenRKarl@users.noreply.github.com> Date: Tue, 5 Mar 2019 14:16:51 -0500 Subject: [PATCH] Changes for release v1_0. (#42) --- ChangeLog | 6 + README.rst | 18 + .../{v0 => account_management}/__init__.py | 0 .../account_management/create_customer.py | 4 +- .../get_accessible_customers.py | 2 +- .../account_management/get_account_changes.py | 10 +- .../get_account_information.py | 2 +- .../__init__.py | 0 .../add_ad_group_bid_modifiers.py | 8 +- ...add_expanded_text_ad_with_upgraded_urls.py | 9 +- .../create_and_attach_shared_keyword_sets.py | 24 +- ...ind_and_remove_criteria_from_shared_set.py | 12 +- .../get_ad_group_bid_modifiers.py | 4 +- .../use_portfolio_bidding_strategy.py | 18 +- .../__init__.py | 0 .../basic_operations/add_ad_groups.py | 11 +- .../basic_operations/add_campaigns.py | 21 +- .../basic_operations/add_expanded_text_ads.py | 9 +- .../{v0 => }/basic_operations/add_keywords.py | 8 +- .../basic_operations/get_ad_groups.py | 2 +- .../basic_operations/get_artifact_metadata.py | 2 +- .../basic_operations/get_campaigns.py | 4 +- .../basic_operations/get_expanded_text_ads.py | 2 +- .../{v0 => }/basic_operations/get_keywords.py | 2 +- .../handle_partial_failure.py | 160 + .../{v0 => }/basic_operations/pause_ad.py | 7 +- .../{v0 => }/basic_operations/remove_ad.py | 4 +- .../basic_operations/remove_ad_group.py | 4 +- .../basic_operations/remove_campaign.py | 4 +- .../basic_operations/remove_keyword.py | 4 +- .../basic_operations/update_ad_group.py | 6 +- .../basic_operations/update_campaign.py | 6 +- .../basic_operations/update_keyword.py | 8 +- .../basic_operations => billing}/__init__.py | 0 .../billing/add_account_budget_proposal.py | 9 +- .../billing/get_account_budget_proposals.py | 2 +- .../{v0 => }/billing/get_account_budgets.py | 2 +- .../{v0 => }/billing/get_billing_setups.py | 5 +- .../{v0 => }/billing/remove_billing_setup.py | 6 +- .../__init__.py | 0 .../add_campaign_bid_modifier.py | 7 +- .../get_all_disapproved_ads.py | 4 +- .../__init__.py | 0 examples/{v0 => }/hotel_ads/add_hotel_ad.py | 30 +- .../add_hotel_ad_group_bid_modifiers.py | 13 +- .../hotel_ads => recommendations}/__init__.py | 0 .../recommendations/apply_recommendation.py | 3 +- .../recommendations/dismiss_recommendation.py | 0 .../get_text_ad_recommendations.py | 2 +- .../__init__.py | 0 .../remarketing/add_conversion_action.py | 6 +- .../{v0/remarketing => reporting}/__init__.py | 0 .../reporting/get_hotel_ads_performance.py | 2 +- .../{v0 => }/reporting/get_keyword_stats.py | 2 +- .../shopping/add_shopping_product_ad.py | 57 +- .../{v0/reporting => targeting}/__init__.py | 0 .../add_campaign_targeting_criteria.py | 27 +- .../get_campaign_targeting_criteria.py | 5 +- .../get_geo_target_constant_by_names.py | 9 +- google/ads/google_ads/__init__.py | 2 +- google/ads/google_ads/client.py | 45 +- google/ads/google_ads/v1/__init__.py | 1376 +++ .../ads/google_ads/v1/proto}/__init__.py | 0 .../google_ads/v1/proto/common/__init__.py | 0 .../v1/proto/common/ad_asset_pb2.py | 97 + .../v1/proto/common/ad_asset_pb2_grpc.py | 3 + .../v1/proto/common/ad_type_infos_pb2.py | 1673 +++ .../v1/proto/common/ad_type_infos_pb2_grpc.py | 3 + .../google_ads/v1/proto/common/bidding_pb2.py | 878 ++ .../v1/proto/common/bidding_pb2_grpc.py | 3 + .../v1/proto/common/click_location_pb2.py | 123 + .../proto/common/click_location_pb2_grpc.py | 3 + .../v1/proto/common/criteria_pb2.py | 3054 ++++++ .../v1/proto/common/criteria_pb2_grpc.py | 3 + .../criterion_category_availability_pb2.py | 258 + ...riterion_category_availability_pb2_grpc.py | 3 + .../v1/proto/common/custom_parameter_pb2.py | 93 + .../proto/common/custom_parameter_pb2_grpc.py | 3 + .../google_ads/v1/proto/common/dates_pb2.py | 92 + .../v1/proto/common/dates_pb2_grpc.py | 3 + .../explorer_auto_optimizer_setting_pb2.py | 83 + ...xplorer_auto_optimizer_setting_pb2_grpc.py | 3 + .../v1/proto/common/extensions_pb2.py | 1032 ++ .../v1/proto/common/extensions_pb2_grpc.py | 3 + .../v1/proto/common/feed_common_pb2.py | 92 + .../v1/proto/common/feed_common_pb2_grpc.py | 3 + .../v1/proto/common/frequency_cap_pb2.py | 179 + .../v1/proto/common/frequency_cap_pb2_grpc.py | 3 + .../proto/common/keyword_plan_common_pb2.py | 93 + .../common/keyword_plan_common_pb2_grpc.py | 3 + .../v1/proto/common/matching_function_pb2.py | 478 + .../common/matching_function_pb2_grpc.py | 3 + .../google_ads/v1/proto/common/metrics_pb2.py | 1143 +++ .../v1/proto/common/metrics_pb2_grpc.py | 3 + .../google_ads/v1/proto/common/policy_pb2.py | 828 ++ .../v1/proto/common/policy_pb2_grpc.py | 3 + .../common/real_time_bidding_setting_pb2.py | 83 + .../real_time_bidding_setting_pb2_grpc.py | 3 + .../v1/proto/common/segments_pb2.py | 809 ++ .../v1/proto/common/segments_pb2_grpc.py | 3 + .../v1/proto/common/simulation_pb2.py | 191 + .../v1/proto/common/simulation_pb2_grpc.py | 3 + .../v1/proto/common/tag_snippet_pb2.py | 118 + .../v1/proto/common/tag_snippet_pb2_grpc.py | 3 + .../v1/proto/common/targeting_setting_pb2.py | 150 + .../common/targeting_setting_pb2_grpc.py | 3 + .../v1/proto/common/text_label_pb2.py | 96 + .../v1/proto/common/text_label_pb2_grpc.py | 3 + .../v1/proto/common/url_collection_pb2.py | 112 + .../proto/common/url_collection_pb2_grpc.py | 3 + .../v1/proto/common/user_lists_pb2.py | 1172 +++ .../v1/proto/common/user_lists_pb2_grpc.py | 3 + .../google_ads/v1/proto/common/value_pb2.py | 136 + .../v1/proto/common/value_pb2_grpc.py | 3 + .../ads/google_ads/v1/proto/enums/__init__.py | 0 .../v1/proto/enums/access_reason_pb2.py | 112 + .../v1/proto/enums/access_reason_pb2_grpc.py | 3 + .../account_budget_proposal_status_pb2.py | 112 + ...account_budget_proposal_status_pb2_grpc.py | 3 + .../enums/account_budget_proposal_type_pb2.py | 108 + .../account_budget_proposal_type_pb2_grpc.py | 3 + .../proto/enums/account_budget_status_pb2.py | 104 + .../enums/account_budget_status_pb2_grpc.py | 3 + .../ad_customizer_placeholder_field_pb2.py | 108 + ...d_customizer_placeholder_field_pb2_grpc.py | 3 + .../enums/ad_group_ad_rotation_mode_pb2.py | 101 + .../ad_group_ad_rotation_mode_pb2_grpc.py | 3 + .../v1/proto/enums/ad_group_ad_status_pb2.py | 104 + .../enums/ad_group_ad_status_pb2_grpc.py | 3 + .../enums/ad_group_criterion_status_pb2.py | 104 + .../ad_group_criterion_status_pb2_grpc.py | 3 + .../v1/proto/enums/ad_group_status_pb2.py | 104 + .../proto/enums/ad_group_status_pb2_grpc.py | 3 + .../v1/proto/enums/ad_group_type_pb2.py | 134 + .../v1/proto/enums/ad_group_type_pb2_grpc.py | 3 + .../v1/proto/enums/ad_network_type_pb2.py | 116 + .../proto/enums/ad_network_type_pb2_grpc.py | 3 + .../ad_serving_optimization_status_pb2.py | 112 + ...ad_serving_optimization_status_pb2_grpc.py | 3 + .../v1/proto/enums/ad_strength_pb2.py | 116 + .../v1/proto/enums/ad_strength_pb2_grpc.py | 3 + .../google_ads/v1/proto/enums/ad_type_pb2.py | 140 + .../v1/proto/enums/ad_type_pb2_grpc.py | 3 + .../enums/advertising_channel_sub_type_pb2.py | 132 + .../advertising_channel_sub_type_pb2_grpc.py | 3 + .../enums/advertising_channel_type_pb2.py | 112 + .../advertising_channel_type_pb2_grpc.py | 3 + ...ate_location_feed_relationship_type_pb2.py | 97 + ...ocation_feed_relationship_type_pb2_grpc.py | 3 + ...ffiliate_location_placeholder_field_pb2.py | 136 + ...ate_location_placeholder_field_pb2_grpc.py | 3 + .../v1/proto/enums/age_range_type_pb2.py | 120 + .../v1/proto/enums/age_range_type_pb2_grpc.py | 3 + .../proto/enums/app_payment_model_type_pb2.py | 96 + .../enums/app_payment_model_type_pb2_grpc.py | 3 + .../proto/enums/app_placeholder_field_pb2.py | 124 + .../enums/app_placeholder_field_pb2_grpc.py | 3 + .../v1/proto/enums/app_store_pb2.py | 100 + .../v1/proto/enums/app_store_pb2_grpc.py | 3 + .../v1/proto/enums/attribution_model_pb2.py | 122 + .../proto/enums/attribution_model_pb2_grpc.py | 3 + .../v1/proto/enums/bid_modifier_source_pb2.py | 100 + .../enums/bid_modifier_source_pb2_grpc.py | 3 + .../v1/proto/enums/bidding_source_pb2.py | 104 + .../v1/proto/enums/bidding_source_pb2_grpc.py | 3 + .../enums/bidding_strategy_status_pb2.py | 100 + .../enums/bidding_strategy_status_pb2_grpc.py | 3 + .../proto/enums/bidding_strategy_type_pb2.py | 148 + .../enums/bidding_strategy_type_pb2_grpc.py | 3 + .../proto/enums/billing_setup_status_pb2.py | 108 + .../enums/billing_setup_status_pb2_grpc.py | 3 + .../enums/brand_safety_suitability_pb2.py | 104 + .../brand_safety_suitability_pb2_grpc.py | 3 + .../proto/enums/budget_delivery_method_pb2.py | 101 + .../enums/budget_delivery_method_pb2_grpc.py | 3 + .../v1/proto/enums/budget_period_pb2.py | 104 + .../v1/proto/enums/budget_period_pb2_grpc.py | 3 + .../v1/proto/enums/budget_status_pb2.py | 100 + .../v1/proto/enums/budget_status_pb2_grpc.py | 3 + .../call_conversion_reporting_state_pb2.py | 105 + ...all_conversion_reporting_state_pb2_grpc.py | 3 + .../proto/enums/call_placeholder_field_pb2.py | 112 + .../enums/call_placeholder_field_pb2_grpc.py | 3 + .../enums/callout_placeholder_field_pb2.py | 96 + .../callout_placeholder_field_pb2_grpc.py | 3 + .../enums/campaign_serving_status_pb2.py | 112 + .../enums/campaign_serving_status_pb2_grpc.py | 3 + .../enums/campaign_shared_set_status_pb2.py | 100 + .../campaign_shared_set_status_pb2_grpc.py | 3 + .../v1/proto/enums/campaign_status_pb2.py | 104 + .../proto/enums/campaign_status_pb2_grpc.py | 3 + .../enums/change_status_operation_pb2.py | 104 + .../enums/change_status_operation_pb2_grpc.py | 3 + .../enums/change_status_resource_type_pb2.py | 133 + .../change_status_resource_type_pb2_grpc.py | 3 + .../v1/proto/enums/click_type_pb2.py | 300 + .../v1/proto/enums/click_type_pb2_grpc.py | 3 + .../v1/proto/enums/content_label_type_pb2.py | 152 + .../enums/content_label_type_pb2_grpc.py | 3 + .../enums/conversion_action_category_pb2.py | 117 + .../conversion_action_category_pb2_grpc.py | 3 + .../conversion_action_counting_type_pb2.py | 101 + ...onversion_action_counting_type_pb2_grpc.py | 3 + .../enums/conversion_action_status_pb2.py | 104 + .../conversion_action_status_pb2_grpc.py | 3 + .../proto/enums/conversion_action_type_pb2.py | 124 + .../enums/conversion_action_type_pb2_grpc.py | 3 + .../conversion_attribution_event_type_pb2.py | 101 + ...version_attribution_event_type_pb2_grpc.py | 3 + .../proto/enums/conversion_lag_bucket_pb2.py | 169 + .../enums/conversion_lag_bucket_pb2_grpc.py | 3 + ...conversion_or_adjustment_lag_bucket_pb2.py | 258 + ...rsion_or_adjustment_lag_bucket_pb2_grpc.py | 3 + ..._category_channel_availability_mode_pb2.py | 107 + ...gory_channel_availability_mode_pb2_grpc.py | 3 + ...n_category_locale_availability_mode_pb2.py | 110 + ...egory_locale_availability_mode_pb2_grpc.py | 3 + .../criterion_system_serving_status_pb2.py | 101 + ...riterion_system_serving_status_pb2_grpc.py | 3 + .../v1/proto/enums/criterion_type_pb2.py | 208 + .../v1/proto/enums/criterion_type_pb2_grpc.py | 3 + .../enums/custom_interest_member_type_pb2.py | 100 + .../custom_interest_member_type_pb2_grpc.py | 3 + .../proto/enums/custom_interest_status_pb2.py | 100 + .../enums/custom_interest_status_pb2_grpc.py | 3 + .../proto/enums/custom_interest_type_pb2.py | 100 + .../enums/custom_interest_type_pb2_grpc.py | 3 + .../enums/custom_placeholder_field_pb2.py | 174 + .../custom_placeholder_field_pb2_grpc.py | 3 + .../customer_match_upload_key_type_pb2.py | 104 + ...customer_match_upload_key_type_pb2_grpc.py | 3 + .../enums/data_driven_model_status_pb2.py | 108 + .../data_driven_model_status_pb2_grpc.py | 3 + .../v1/proto/enums/day_of_week_pb2.py | 120 + .../v1/proto/enums/day_of_week_pb2_grpc.py | 3 + .../google_ads/v1/proto/enums/device_pb2.py | 108 + .../v1/proto/enums/device_pb2_grpc.py | 3 + .../enums/display_ad_format_setting_pb2.py | 104 + .../display_ad_format_setting_pb2_grpc.py | 3 + .../dsa_page_feed_criterion_field_pb2.py | 100 + .../dsa_page_feed_criterion_field_pb2_grpc.py | 3 + .../enums/education_placeholder_field_pb2.py | 162 + .../education_placeholder_field_pb2_grpc.py | 3 + .../enums/extension_setting_device_pb2.py | 100 + .../extension_setting_device_pb2_grpc.py | 3 + .../v1/proto/enums/extension_type_pb2.py | 133 + .../v1/proto/enums/extension_type_pb2_grpc.py | 3 + .../enums/external_conversion_source_pb2.py | 177 + .../external_conversion_source_pb2_grpc.py | 3 + .../v1/proto/enums/feed_attribute_type_pb2.py | 144 + .../enums/feed_attribute_type_pb2_grpc.py | 3 + .../feed_item_quality_approval_status_pb2.py | 101 + ...d_item_quality_approval_status_pb2_grpc.py | 3 + ...eed_item_quality_disapproval_reason_pb2.py | 165 + ...tem_quality_disapproval_reason_pb2_grpc.py | 3 + .../v1/proto/enums/feed_item_status_pb2.py | 100 + .../proto/enums/feed_item_status_pb2_grpc.py | 3 + .../enums/feed_item_target_device_pb2.py | 97 + .../enums/feed_item_target_device_pb2_grpc.py | 3 + .../proto/enums/feed_item_target_type_pb2.py | 104 + .../enums/feed_item_target_type_pb2_grpc.py | 3 + .../enums/feed_item_validation_status_pb2.py | 105 + .../feed_item_validation_status_pb2_grpc.py | 3 + .../v1/proto/enums/feed_link_status_pb2.py | 100 + .../proto/enums/feed_link_status_pb2_grpc.py | 3 + .../enums/feed_mapping_criterion_type_pb2.py | 101 + .../feed_mapping_criterion_type_pb2_grpc.py | 3 + .../v1/proto/enums/feed_mapping_status_pb2.py | 100 + .../enums/feed_mapping_status_pb2_grpc.py | 3 + .../v1/proto/enums/feed_origin_pb2.py | 100 + .../v1/proto/enums/feed_origin_pb2_grpc.py | 3 + .../v1/proto/enums/feed_status_pb2.py | 100 + .../v1/proto/enums/feed_status_pb2_grpc.py | 3 + .../enums/flight_placeholder_field_pb2.py | 162 + .../flight_placeholder_field_pb2_grpc.py | 3 + .../enums/frequency_cap_event_type_pb2.py | 100 + .../frequency_cap_event_type_pb2_grpc.py | 3 + .../v1/proto/enums/frequency_cap_level_pb2.py | 105 + .../enums/frequency_cap_level_pb2_grpc.py | 3 + .../enums/frequency_cap_time_unit_pb2.py | 104 + .../enums/frequency_cap_time_unit_pb2_grpc.py | 3 + .../v1/proto/enums/gender_type_pb2.py | 104 + .../v1/proto/enums/gender_type_pb2_grpc.py | 3 + .../enums/geo_target_constant_status_pb2.py | 100 + .../geo_target_constant_status_pb2_grpc.py | 3 + .../enums/geo_targeting_restriction_pb2.py | 96 + .../geo_targeting_restriction_pb2_grpc.py | 3 + .../v1/proto/enums/geo_targeting_type_pb2.py | 100 + .../enums/geo_targeting_type_pb2_grpc.py | 3 + .../enums/google_ads_field_category_pb2.py | 110 + .../google_ads_field_category_pb2_grpc.py | 3 + .../enums/google_ads_field_data_type_pb2.py | 132 + .../google_ads_field_data_type_pb2_grpc.py | 3 + .../enums/hotel_date_selection_type_pb2.py | 100 + .../hotel_date_selection_type_pb2_grpc.py | 3 + .../enums/hotel_placeholder_field_pb2.py | 174 + .../enums/hotel_placeholder_field_pb2_grpc.py | 3 + .../v1/proto/enums/income_range_type_pb2.py | 120 + .../proto/enums/income_range_type_pb2_grpc.py | 3 + .../proto/enums/interaction_event_type_pb2.py | 108 + .../enums/interaction_event_type_pb2_grpc.py | 3 + .../v1/proto/enums/interaction_type_pb2.py | 96 + .../proto/enums/interaction_type_pb2_grpc.py | 3 + .../proto/enums/job_placeholder_field_pb2.py | 162 + .../enums/job_placeholder_field_pb2_grpc.py | 3 + .../v1/proto/enums/keyword_match_type_pb2.py | 104 + .../enums/keyword_match_type_pb2_grpc.py | 3 + .../keyword_plan_competition_level_pb2.py | 108 + ...keyword_plan_competition_level_pb2_grpc.py | 3 + .../keyword_plan_forecast_interval_pb2.py | 104 + ...keyword_plan_forecast_interval_pb2_grpc.py | 3 + .../proto/enums/keyword_plan_network_pb2.py | 100 + .../enums/keyword_plan_network_pb2_grpc.py | 3 + .../v1/proto/enums/label_status_pb2.py | 100 + .../v1/proto/enums/label_status_pb2_grpc.py | 3 + .../listing_custom_attribute_index_pb2.py | 112 + ...listing_custom_attribute_index_pb2_grpc.py | 3 + .../v1/proto/enums/listing_group_type_pb2.py | 100 + .../enums/listing_group_type_pb2_grpc.py | 3 + .../enums/local_placeholder_field_pb2.py | 170 + .../enums/local_placeholder_field_pb2_grpc.py | 3 + ...extension_targeting_criterion_field_pb2.py | 116 + ...sion_targeting_criterion_field_pb2_grpc.py | 3 + .../enums/location_placeholder_field_pb2.py | 124 + .../location_placeholder_field_pb2_grpc.py | 3 + .../v1/proto/enums/manager_link_status_pb2.py | 113 + .../enums/manager_link_status_pb2_grpc.py | 3 + .../matching_function_context_type_pb2.py | 100 + ...matching_function_context_type_pb2_grpc.py | 3 + .../enums/matching_function_operator_pb2.py | 112 + .../matching_function_operator_pb2_grpc.py | 3 + .../v1/proto/enums/media_type_pb2.py | 116 + .../v1/proto/enums/media_type_pb2_grpc.py | 3 + .../enums/merchant_center_link_status_pb2.py | 101 + .../merchant_center_link_status_pb2_grpc.py | 3 + .../enums/message_placeholder_field_pb2.py | 112 + .../message_placeholder_field_pb2_grpc.py | 3 + .../v1/proto/enums/mime_type_pb2.py | 140 + .../v1/proto/enums/mime_type_pb2_grpc.py | 3 + .../v1/proto/enums/minute_of_hour_pb2.py | 108 + .../v1/proto/enums/minute_of_hour_pb2_grpc.py | 3 + .../v1/proto/enums/mobile_device_type_pb2.py | 100 + .../enums/mobile_device_type_pb2_grpc.py | 3 + .../v1/proto/enums/month_of_year_pb2.py | 140 + .../v1/proto/enums/month_of_year_pb2_grpc.py | 3 + .../v1/proto/enums/mutate_job_status_pb2.py | 104 + .../proto/enums/mutate_job_status_pb2_grpc.py | 3 + .../enums/negative_geo_target_type_pb2.py | 100 + .../negative_geo_target_type_pb2_grpc.py | 3 + ...rating_system_version_operator_type_pb2.py | 100 + ...g_system_version_operator_type_pb2_grpc.py | 3 + .../page_one_promoted_strategy_goal_pb2.py | 101 + ...age_one_promoted_strategy_goal_pb2_grpc.py | 3 + .../proto/enums/parental_status_type_pb2.py | 104 + .../enums/parental_status_type_pb2_grpc.py | 3 + .../v1/proto/enums/placeholder_type_pb2.py | 169 + .../proto/enums/placeholder_type_pb2_grpc.py | 3 + .../v1/proto/enums/placement_type_pb2.py | 112 + .../v1/proto/enums/placement_type_pb2_grpc.py | 3 + .../proto/enums/policy_approval_status_pb2.py | 108 + .../enums/policy_approval_status_pb2_grpc.py | 3 + .../proto/enums/policy_review_status_pb2.py | 104 + .../enums/policy_review_status_pb2_grpc.py | 3 + .../enums/policy_topic_entry_type_pb2.py | 112 + .../enums/policy_topic_entry_type_pb2_grpc.py | 3 + ...dence_destination_mismatch_url_type_pb2.py | 113 + ..._destination_mismatch_url_type_pb2_grpc.py | 3 + .../enums/positive_geo_target_type_pb2.py | 104 + .../positive_geo_target_type_pb2_grpc.py | 3 + .../proto/enums/preferred_content_type_pb2.py | 96 + .../enums/preferred_content_type_pb2_grpc.py | 3 + .../price_extension_price_qualifier_pb2.py | 104 + ...rice_extension_price_qualifier_pb2_grpc.py | 3 + .../enums/price_extension_price_unit_pb2.py | 116 + .../price_extension_price_unit_pb2_grpc.py | 3 + .../proto/enums/price_extension_type_pb2.py | 128 + .../enums/price_extension_type_pb2_grpc.py | 3 + .../enums/price_placeholder_field_pb2.py | 304 + .../enums/price_placeholder_field_pb2_grpc.py | 3 + .../product_bidding_category_level_pb2.py | 112 + ...product_bidding_category_level_pb2_grpc.py | 3 + .../product_bidding_category_status_pb2.py | 100 + ...roduct_bidding_category_status_pb2_grpc.py | 3 + .../enums/product_channel_exclusivity_pb2.py | 100 + .../product_channel_exclusivity_pb2_grpc.py | 3 + .../v1/proto/enums/product_channel_pb2.py | 100 + .../proto/enums/product_channel_pb2_grpc.py | 3 + .../v1/proto/enums/product_condition_pb2.py | 104 + .../proto/enums/product_condition_pb2_grpc.py | 3 + .../v1/proto/enums/product_type_level_pb2.py | 112 + .../enums/product_type_level_pb2_grpc.py | 3 + ...omotion_extension_discount_modifier_pb2.py | 97 + ...on_extension_discount_modifier_pb2_grpc.py | 3 + .../enums/promotion_extension_occasion_pb2.py | 242 + .../promotion_extension_occasion_pb2_grpc.py | 3 + .../enums/promotion_placeholder_field_pb2.py | 148 + .../promotion_placeholder_field_pb2_grpc.py | 3 + .../proto/enums/proximity_radius_units_pb2.py | 100 + .../enums/proximity_radius_units_pb2_grpc.py | 3 + .../proto/enums/quality_score_bucket_pb2.py | 104 + .../enums/quality_score_bucket_pb2_grpc.py | 3 + .../real_estate_placeholder_field_pb2.py | 166 + .../real_estate_placeholder_field_pb2_grpc.py | 3 + .../v1/proto/enums/recommendation_type_pb2.py | 128 + .../enums/recommendation_type_pb2_grpc.py | 3 + .../proto/enums/search_term_match_type_pb2.py | 113 + .../enums/search_term_match_type_pb2_grpc.py | 3 + .../enums/search_term_targeting_status_pb2.py | 109 + .../search_term_targeting_status_pb2_grpc.py | 3 + .../enums/served_asset_field_type_pb2.py | 112 + .../enums/served_asset_field_type_pb2_grpc.py | 3 + .../v1/proto/enums/shared_set_status_pb2.py | 100 + .../proto/enums/shared_set_status_pb2_grpc.py | 3 + .../v1/proto/enums/shared_set_type_pb2.py | 100 + .../proto/enums/shared_set_type_pb2_grpc.py | 3 + .../simulation_modification_method_pb2.py | 97 + ...simulation_modification_method_pb2_grpc.py | 3 + .../v1/proto/enums/simulation_type_pb2.py | 96 + .../proto/enums/simulation_type_pb2_grpc.py | 3 + .../enums/sitelink_placeholder_field_pb2.py | 120 + .../sitelink_placeholder_field_pb2_grpc.py | 3 + .../ads/google_ads/v1/proto/enums/slot_pb2.py | 120 + .../v1/proto/enums/slot_pb2_grpc.py | 3 + .../v1/proto/enums/spending_limit_type_pb2.py | 96 + .../enums/spending_limit_type_pb2_grpc.py | 3 + ...tructured_snippet_placeholder_field_pb2.py | 100 + ...ured_snippet_placeholder_field_pb2_grpc.py | 3 + .../enums/system_managed_entity_source_pb2.py | 96 + .../system_managed_entity_source_pb2_grpc.py | 3 + ...rget_cpa_opt_in_recommendation_goal_pb2.py | 108 + ...cpa_opt_in_recommendation_goal_pb2_grpc.py | 3 + .../target_impression_share_location_pb2.py | 106 + ...rget_impression_share_location_pb2_grpc.py | 3 + .../v1/proto/enums/targeting_dimension_pb2.py | 124 + .../enums/targeting_dimension_pb2_grpc.py | 3 + .../v1/proto/enums/time_type_pb2.py | 100 + .../v1/proto/enums/time_type_pb2_grpc.py | 3 + .../enums/tracking_code_page_format_pb2.py | 101 + .../tracking_code_page_format_pb2_grpc.py | 3 + .../v1/proto/enums/tracking_code_type_pb2.py | 105 + .../enums/tracking_code_type_pb2_grpc.py | 3 + .../enums/travel_placeholder_field_pb2.py | 174 + .../travel_placeholder_field_pb2_grpc.py | 3 + .../enums/user_interest_taxonomy_type_pb2.py | 112 + .../user_interest_taxonomy_type_pb2_grpc.py | 3 + .../enums/user_list_access_status_pb2.py | 100 + .../enums/user_list_access_status_pb2_grpc.py | 3 + .../enums/user_list_closing_reason_pb2.py | 97 + .../user_list_closing_reason_pb2_grpc.py | 3 + .../user_list_combined_rule_operator_pb2.py | 100 + ...er_list_combined_rule_operator_pb2_grpc.py | 3 + .../user_list_crm_data_source_type_pb2.py | 104 + ...user_list_crm_data_source_type_pb2_grpc.py | 3 + .../user_list_date_rule_item_operator_pb2.py | 108 + ...r_list_date_rule_item_operator_pb2_grpc.py | 3 + .../user_list_logical_rule_operator_pb2.py | 104 + ...ser_list_logical_rule_operator_pb2_grpc.py | 3 + .../enums/user_list_membership_status_pb2.py | 102 + .../user_list_membership_status_pb2_grpc.py | 3 + ...user_list_number_rule_item_operator_pb2.py | 116 + ...list_number_rule_item_operator_pb2_grpc.py | 3 + .../user_list_prepopulation_status_pb2.py | 104 + ...user_list_prepopulation_status_pb2_grpc.py | 3 + .../v1/proto/enums/user_list_rule_type_pb2.py | 100 + .../enums/user_list_rule_type_pb2_grpc.py | 3 + .../proto/enums/user_list_size_range_pb2.py | 156 + .../enums/user_list_size_range_pb2_grpc.py | 3 + ...user_list_string_rule_item_operator_pb2.py | 124 + ...list_string_rule_item_operator_pb2_grpc.py | 3 + .../v1/proto/enums/user_list_type_pb2.py | 116 + .../v1/proto/enums/user_list_type_pb2_grpc.py | 3 + .../vanity_pharma_display_url_mode_pb2.py | 100 + ...vanity_pharma_display_url_mode_pb2_grpc.py | 3 + .../v1/proto/enums/vanity_pharma_text_pb2.py | 141 + .../enums/vanity_pharma_text_pb2_grpc.py | 3 + .../enums/webpage_condition_operand_pb2.py | 113 + .../webpage_condition_operand_pb2_grpc.py | 3 + .../enums/webpage_condition_operator_pb2.py | 101 + .../webpage_condition_operator_pb2_grpc.py | 3 + .../google_ads/v1/proto/errors/__init__.py | 0 .../account_budget_proposal_error_pb2.py | 180 + .../account_budget_proposal_error_pb2_grpc.py | 3 + .../proto/errors/ad_customizer_error_pb2.py | 112 + .../errors/ad_customizer_error_pb2_grpc.py | 3 + .../v1/proto/errors/ad_error_pb2.py | 596 ++ .../v1/proto/errors/ad_error_pb2_grpc.py | 3 + .../v1/proto/errors/ad_group_ad_error_pb2.py | 124 + .../errors/ad_group_ad_error_pb2_grpc.py | 3 + .../errors/ad_group_bid_modifier_error_pb2.py | 100 + .../ad_group_bid_modifier_error_pb2_grpc.py | 3 + .../errors/ad_group_criterion_error_pb2.py | 240 + .../ad_group_criterion_error_pb2_grpc.py | 3 + .../v1/proto/errors/ad_group_error_pb2.py | 140 + .../proto/errors/ad_group_error_pb2_grpc.py | 3 + .../proto/errors/ad_group_feed_error_pb2.py | 120 + .../errors/ad_group_feed_error_pb2_grpc.py | 3 + .../v1/proto/errors/ad_parameter_error_pb2.py | 100 + .../errors/ad_parameter_error_pb2_grpc.py | 3 + .../v1/proto/errors/ad_sharing_error_pb2.py | 104 + .../proto/errors/ad_sharing_error_pb2_grpc.py | 3 + .../v1/proto/errors/adx_error_pb2.py | 96 + .../v1/proto/errors/adx_error_pb2_grpc.py | 3 + .../proto/errors/authentication_error_pb2.py | 164 + .../errors/authentication_error_pb2_grpc.py | 3 + .../proto/errors/authorization_error_pb2.py | 128 + .../errors/authorization_error_pb2_grpc.py | 3 + .../v1/proto/errors/bidding_error_pb2.py | 176 + .../v1/proto/errors/bidding_error_pb2_grpc.py | 3 + .../errors/bidding_strategy_error_pb2.py | 108 + .../errors/bidding_strategy_error_pb2_grpc.py | 3 + .../proto/errors/billing_setup_error_pb2.py | 152 + .../errors/billing_setup_error_pb2_grpc.py | 3 + .../proto/errors/campaign_budget_error_pb2.py | 152 + .../errors/campaign_budget_error_pb2_grpc.py | 3 + .../errors/campaign_criterion_error_pb2.py | 136 + .../campaign_criterion_error_pb2_grpc.py | 3 + .../v1/proto/errors/campaign_error_pb2.py | 236 + .../proto/errors/campaign_error_pb2_grpc.py | 3 + .../proto/errors/campaign_feed_error_pb2.py | 116 + .../errors/campaign_feed_error_pb2_grpc.py | 3 + .../errors/campaign_shared_set_error_pb2.py | 96 + .../campaign_shared_set_error_pb2_grpc.py | 3 + .../proto/errors/change_status_error_pb2.py | 96 + .../errors/change_status_error_pb2_grpc.py | 3 + .../proto/errors/collection_size_error_pb2.py | 100 + .../errors/collection_size_error_pb2_grpc.py | 3 + .../v1/proto/errors/context_error_pb2.py | 100 + .../v1/proto/errors/context_error_pb2_grpc.py | 3 + .../errors/conversion_action_error_pb2.py | 124 + .../conversion_action_error_pb2_grpc.py | 3 + .../errors/conversion_upload_error_pb2.py | 152 + .../conversion_upload_error_pb2_grpc.py | 3 + .../v1/proto/errors/country_code_error_pb2.py | 96 + .../errors/country_code_error_pb2_grpc.py | 3 + .../v1/proto/errors/criterion_error_pb2.py | 468 + .../proto/errors/criterion_error_pb2_grpc.py | 3 + .../proto/errors/custom_interest_error_pb2.py | 120 + .../errors/custom_interest_error_pb2_grpc.py | 3 + .../errors/customer_client_link_error_pb2.py | 120 + .../customer_client_link_error_pb2_grpc.py | 3 + .../v1/proto/errors/customer_error_pb2.py | 100 + .../proto/errors/customer_error_pb2_grpc.py | 3 + .../proto/errors/customer_feed_error_pb2.py | 120 + .../errors/customer_feed_error_pb2_grpc.py | 3 + .../errors/customer_manager_link_error_pb2.py | 124 + .../customer_manager_link_error_pb2_grpc.py | 3 + .../v1/proto/errors/database_error_pb2.py | 96 + .../proto/errors/database_error_pb2_grpc.py | 3 + .../v1/proto/errors/date_error_pb2.py | 132 + .../v1/proto/errors/date_error_pb2_grpc.py | 3 + .../v1/proto/errors/date_range_error_pb2.py | 112 + .../proto/errors/date_range_error_pb2_grpc.py | 3 + .../v1/proto/errors/distinct_error_pb2.py | 100 + .../proto/errors/distinct_error_pb2_grpc.py | 3 + .../v1/proto/errors/enum_error_pb2.py | 96 + .../v1/proto/errors/enum_error_pb2_grpc.py | 3 + .../google_ads/v1/proto/errors/errors_pb2.py | 1823 ++++ .../v1/proto/errors/errors_pb2_grpc.py | 3 + .../errors/extension_feed_item_error_pb2.py | 264 + .../extension_feed_item_error_pb2_grpc.py | 3 + .../errors/extension_setting_error_pb2.py | 348 + .../extension_setting_error_pb2_grpc.py | 3 + .../feed_attribute_reference_error_pb2.py | 104 + ...feed_attribute_reference_error_pb2_grpc.py | 3 + .../v1/proto/errors/feed_error_pb2.py | 168 + .../v1/proto/errors/feed_error_pb2_grpc.py | 3 + .../v1/proto/errors/feed_item_error_pb2.py | 128 + .../proto/errors/feed_item_error_pb2_grpc.py | 3 + .../errors/feed_item_target_error_pb2.py | 116 + .../errors/feed_item_target_error_pb2_grpc.py | 3 + .../errors/feed_item_validation_error_pb2.py | 448 + .../feed_item_validation_error_pb2_grpc.py | 3 + .../v1/proto/errors/feed_mapping_error_pb2.py | 156 + .../errors/feed_mapping_error_pb2_grpc.py | 3 + .../v1/proto/errors/field_error_pb2.py | 120 + .../v1/proto/errors/field_error_pb2_grpc.py | 3 + .../v1/proto/errors/field_mask_error_pb2.py | 108 + .../proto/errors/field_mask_error_pb2_grpc.py | 3 + .../v1/proto/errors/function_error_pb2.py | 156 + .../proto/errors/function_error_pb2_grpc.py | 3 + .../errors/function_parsing_error_pb2.py | 136 + .../errors/function_parsing_error_pb2_grpc.py | 3 + ...eo_target_constant_suggestion_error_pb2.py | 109 + ...rget_constant_suggestion_error_pb2_grpc.py | 3 + .../v1/proto/errors/header_error_pb2.py | 96 + .../v1/proto/errors/header_error_pb2_grpc.py | 3 + .../v1/proto/errors/id_error_pb2.py | 96 + .../v1/proto/errors/id_error_pb2_grpc.py | 3 + .../v1/proto/errors/image_error_pb2.py | 240 + .../v1/proto/errors/image_error_pb2_grpc.py | 3 + .../v1/proto/errors/internal_error_pb2.py | 104 + .../proto/errors/internal_error_pb2_grpc.py | 3 + .../errors/keyword_plan_ad_group_error_pb2.py | 101 + .../keyword_plan_ad_group_error_pb2_grpc.py | 3 + .../errors/keyword_plan_campaign_error_pb2.py | 113 + .../keyword_plan_campaign_error_pb2_grpc.py | 3 + .../v1/proto/errors/keyword_plan_error_pb2.py | 150 + .../errors/keyword_plan_error_pb2_grpc.py | 3 + .../errors/keyword_plan_idea_error_pb2.py | 101 + .../keyword_plan_idea_error_pb2_grpc.py | 3 + .../errors/keyword_plan_keyword_error_pb2.py | 117 + .../keyword_plan_keyword_error_pb2_grpc.py | 3 + ...keyword_plan_negative_keyword_error_pb2.py | 93 + ...rd_plan_negative_keyword_error_pb2_grpc.py | 3 + .../v1/proto/errors/label_error_pb2.py | 128 + .../v1/proto/errors/label_error_pb2_grpc.py | 3 + .../proto/errors/language_code_error_pb2.py | 100 + .../errors/language_code_error_pb2_grpc.py | 3 + .../proto/errors/list_operation_error_pb2.py | 100 + .../errors/list_operation_error_pb2_grpc.py | 3 + .../v1/proto/errors/media_bundle_error_pb2.py | 180 + .../errors/media_bundle_error_pb2_grpc.py | 3 + .../v1/proto/errors/media_file_error_pb2.py | 184 + .../proto/errors/media_file_error_pb2_grpc.py | 3 + .../v1/proto/errors/multiplier_error_pb2.py | 140 + .../proto/errors/multiplier_error_pb2_grpc.py | 3 + .../v1/proto/errors/mutate_error_pb2.py | 112 + .../v1/proto/errors/mutate_error_pb2_grpc.py | 3 + .../v1/proto/errors/mutate_job_error_pb2.py | 112 + .../proto/errors/mutate_job_error_pb2_grpc.py | 3 + .../errors/new_resource_creation_error_pb2.py | 104 + .../new_resource_creation_error_pb2_grpc.py | 3 + .../v1/proto/errors/not_empty_error_pb2.py | 96 + .../proto/errors/not_empty_error_pb2_grpc.py | 3 + .../v1/proto/errors/null_error_pb2.py | 96 + .../v1/proto/errors/null_error_pb2_grpc.py | 3 + .../operation_access_denied_error_pb2.py | 132 + .../operation_access_denied_error_pb2_grpc.py | 3 + .../v1/proto/errors/operator_error_pb2.py | 96 + .../proto/errors/operator_error_pb2_grpc.py | 3 + .../proto/errors/partial_failure_error_pb2.py | 96 + .../errors/partial_failure_error_pb2_grpc.py | 3 + .../proto/errors/policy_finding_error_pb2.py | 100 + .../errors/policy_finding_error_pb2_grpc.py | 3 + .../policy_validation_parameter_error_pb2.py | 97 + ...icy_validation_parameter_error_pb2_grpc.py | 3 + .../errors/policy_violation_error_pb2.py | 96 + .../errors/policy_violation_error_pb2_grpc.py | 3 + .../v1/proto/errors/query_error_pb2.py | 292 + .../v1/proto/errors/query_error_pb2_grpc.py | 3 + .../v1/proto/errors/quota_error_pb2.py | 104 + .../v1/proto/errors/quota_error_pb2_grpc.py | 3 + .../v1/proto/errors/range_error_pb2.py | 100 + .../v1/proto/errors/range_error_pb2_grpc.py | 3 + .../proto/errors/recommendation_error_pb2.py | 145 + .../errors/recommendation_error_pb2_grpc.py | 3 + .../v1/proto/errors/region_code_error_pb2.py | 96 + .../errors/region_code_error_pb2_grpc.py | 3 + .../v1/proto/errors/request_error_pb2.py | 160 + .../v1/proto/errors/request_error_pb2_grpc.py | 3 + .../resource_access_denied_error_pb2.py | 96 + .../resource_access_denied_error_pb2_grpc.py | 3 + ...resource_count_limit_exceeded_error_pb2.py | 125 + ...rce_count_limit_exceeded_error_pb2_grpc.py | 3 + .../v1/proto/errors/setting_error_pb2.py | 160 + .../v1/proto/errors/setting_error_pb2_grpc.py | 3 + .../errors/shared_criterion_error_pb2.py | 96 + .../errors/shared_criterion_error_pb2_grpc.py | 3 + .../v1/proto/errors/shared_set_error_pb2.py | 108 + .../proto/errors/shared_set_error_pb2_grpc.py | 3 + .../proto/errors/string_format_error_pb2.py | 100 + .../errors/string_format_error_pb2_grpc.py | 3 + .../proto/errors/string_length_error_pb2.py | 100 + .../errors/string_length_error_pb2_grpc.py | 3 + .../v1/proto/errors/url_field_error_pb2.py | 296 + .../proto/errors/url_field_error_pb2_grpc.py | 3 + .../v1/proto/errors/user_list_error_pb2.py | 196 + .../proto/errors/user_list_error_pb2_grpc.py | 3 + .../google_ads/v1/proto/resources/__init__.py | 0 .../v1/proto/resources/account_budget_pb2.py | 584 ++ .../resources/account_budget_pb2_grpc.py | 3 + .../resources/account_budget_proposal_pb2.py | 376 + .../account_budget_proposal_pb2_grpc.py | 3 + .../proto/resources/ad_group_ad_label_pb2.py | 103 + .../resources/ad_group_ad_label_pb2_grpc.py | 3 + .../v1/proto/resources/ad_group_ad_pb2.py | 208 + .../proto/resources/ad_group_ad_pb2_grpc.py | 3 + .../resources/ad_group_audience_view_pb2.py | 85 + .../ad_group_audience_view_pb2_grpc.py | 3 + .../resources/ad_group_bid_modifier_pb2.py | 227 + .../ad_group_bid_modifier_pb2_grpc.py | 3 + .../resources/ad_group_criterion_label_pb2.py | 104 + .../ad_group_criterion_label_pb2_grpc.py | 3 + .../proto/resources/ad_group_criterion_pb2.py | 761 ++ .../resources/ad_group_criterion_pb2_grpc.py | 3 + .../ad_group_extension_setting_pb2.py | 131 + .../ad_group_extension_setting_pb2_grpc.py | 3 + .../v1/proto/resources/ad_group_feed_pb2.py | 139 + .../proto/resources/ad_group_feed_pb2_grpc.py | 3 + .../v1/proto/resources/ad_group_label_pb2.py | 103 + .../resources/ad_group_label_pb2_grpc.py | 3 + .../v1/proto/resources/ad_group_pb2.py | 340 + .../v1/proto/resources/ad_group_pb2_grpc.py | 3 + .../v1/proto/resources/ad_parameter_pb2.py | 129 + .../proto/resources/ad_parameter_pb2_grpc.py | 3 + .../google_ads/v1/proto/resources/ad_pb2.py | 382 + .../v1/proto/resources/ad_pb2_grpc.py | 3 + .../proto/resources/ad_schedule_view_pb2.py | 83 + .../resources/ad_schedule_view_pb2_grpc.py | 3 + .../v1/proto/resources/age_range_view_pb2.py | 82 + .../resources/age_range_view_pb2_grpc.py | 3 + .../proto/resources/bidding_strategy_pb2.py | 259 + .../resources/bidding_strategy_pb2_grpc.py | 3 + .../v1/proto/resources/billing_setup_pb2.py | 304 + .../proto/resources/billing_setup_pb2_grpc.py | 3 + .../resources/campaign_audience_view_pb2.py | 86 + .../campaign_audience_view_pb2_grpc.py | 3 + .../resources/campaign_bid_modifier_pb2.py | 134 + .../campaign_bid_modifier_pb2_grpc.py | 3 + .../v1/proto/resources/campaign_budget_pb2.py | 273 + .../resources/campaign_budget_pb2_grpc.py | 3 + .../proto/resources/campaign_criterion_pb2.py | 456 + .../resources/campaign_criterion_pb2_grpc.py | 3 + .../campaign_criterion_simulation_pb2.py | 168 + .../campaign_criterion_simulation_pb2_grpc.py | 3 + .../campaign_extension_setting_pb2.py | 131 + .../campaign_extension_setting_pb2_grpc.py | 3 + .../v1/proto/resources/campaign_feed_pb2.py | 139 + .../proto/resources/campaign_feed_pb2_grpc.py | 3 + .../v1/proto/resources/campaign_label_pb2.py | 103 + .../resources/campaign_label_pb2_grpc.py | 3 + .../v1/proto/resources/campaign_pb2.py | 1082 ++ .../v1/proto/resources/campaign_pb2_grpc.py | 3 + .../resources/campaign_shared_set_pb2.py | 121 + .../resources/campaign_shared_set_pb2_grpc.py | 3 + .../proto/resources/carrier_constant_pb2.py | 114 + .../resources/carrier_constant_pb2_grpc.py | 3 + .../v1/proto/resources/change_status_pb2.py | 218 + .../proto/resources/change_status_pb2_grpc.py | 3 + .../v1/proto/resources/click_view_pb2.py | 128 + .../v1/proto/resources/click_view_pb2_grpc.py | 3 + .../proto/resources/conversion_action_pb2.py | 387 + .../resources/conversion_action_pb2_grpc.py | 3 + .../v1/proto/resources/custom_interest_pb2.py | 215 + .../resources/custom_interest_pb2_grpc.py | 3 + .../resources/customer_client_link_pb2.py | 125 + .../customer_client_link_pb2_grpc.py | 3 + .../v1/proto/resources/customer_client_pb2.py | 118 + .../resources/customer_client_pb2_grpc.py | 3 + .../customer_extension_setting_pb2.py | 118 + .../customer_extension_setting_pb2_grpc.py | 3 + .../v1/proto/resources/customer_feed_pb2.py | 129 + .../proto/resources/customer_feed_pb2_grpc.py | 3 + .../v1/proto/resources/customer_label_pb2.py | 108 + .../resources/customer_label_pb2_grpc.py | 3 + .../resources/customer_manager_link_pb2.py | 114 + .../customer_manager_link_pb2_grpc.py | 3 + .../customer_negative_criterion_pb2.py | 188 + .../customer_negative_criterion_pb2_grpc.py | 3 + .../v1/proto/resources/customer_pb2.py | 403 + .../v1/proto/resources/customer_pb2_grpc.py | 3 + .../resources/detail_placement_view_pb2.py | 141 + .../detail_placement_view_pb2_grpc.py | 3 + .../resources/display_keyword_view_pb2.py | 82 + .../display_keyword_view_pb2_grpc.py | 3 + .../v1/proto/resources/domain_category_pb2.py | 176 + .../resources/domain_category_pb2_grpc.py | 3 + ...dynamic_search_ads_search_term_view_pb2.py | 128 + ...ic_search_ads_search_term_view_pb2_grpc.py | 3 + .../resources/extension_feed_item_pb2.py | 228 + .../resources/extension_feed_item_pb2_grpc.py | 3 + .../v1/proto/resources/feed_item_pb2.py | 574 ++ .../v1/proto/resources/feed_item_pb2_grpc.py | 3 + .../proto/resources/feed_item_target_pb2.py | 201 + .../resources/feed_item_target_pb2_grpc.py | 3 + .../v1/proto/resources/feed_mapping_pb2.py | 518 + .../proto/resources/feed_mapping_pb2_grpc.py | 3 + .../google_ads/v1/proto/resources/feed_pb2.py | 597 ++ .../v1/proto/resources/feed_pb2_grpc.py | 3 + .../resources/feed_placeholder_view_pb2.py | 93 + .../feed_placeholder_view_pb2_grpc.py | 3 + .../v1/proto/resources/gender_view_pb2.py | 82 + .../proto/resources/gender_view_pb2_grpc.py | 3 + .../resources/geo_target_constant_pb2.py | 146 + .../resources/geo_target_constant_pb2_grpc.py | 3 + .../v1/proto/resources/geographic_view_pb2.py | 109 + .../resources/geographic_view_pb2_grpc.py | 3 + .../proto/resources/google_ads_field_pb2.py | 238 + .../resources/google_ads_field_pb2_grpc.py | 3 + .../resources/group_placement_view_pb2.py | 128 + .../group_placement_view_pb2_grpc.py | 3 + .../proto/resources/hotel_group_view_pb2.py | 82 + .../resources/hotel_group_view_pb2_grpc.py | 3 + .../resources/hotel_performance_view_pb2.py | 82 + .../hotel_performance_view_pb2_grpc.py | 3 + .../resources/keyword_plan_ad_group_pb2.py | 127 + .../keyword_plan_ad_group_pb2_grpc.py | 3 + .../resources/keyword_plan_campaign_pb2.py | 208 + .../keyword_plan_campaign_pb2_grpc.py | 3 + .../resources/keyword_plan_keyword_pb2.py | 136 + .../keyword_plan_keyword_pb2_grpc.py | 3 + .../keyword_plan_negative_keyword_pb2.py | 127 + .../keyword_plan_negative_keyword_pb2_grpc.py | 3 + .../v1/proto/resources/keyword_plan_pb2.py | 189 + .../proto/resources/keyword_plan_pb2_grpc.py | 3 + .../v1/proto/resources/keyword_view_pb2.py | 82 + .../proto/resources/keyword_view_pb2_grpc.py | 3 + .../v1/proto/resources/label_pb2.py | 126 + .../v1/proto/resources/label_pb2_grpc.py | 3 + .../proto/resources/language_constant_pb2.py | 124 + .../resources/language_constant_pb2_grpc.py | 3 + .../v1/proto/resources/location_view_pb2.py | 83 + .../proto/resources/location_view_pb2_grpc.py | 3 + .../resources/managed_placement_view_pb2.py | 82 + .../managed_placement_view_pb2_grpc.py | 3 + .../v1/proto/resources/media_file_pb2.py | 431 + .../v1/proto/resources/media_file_pb2_grpc.py | 3 + .../resources/merchant_center_link_pb2.py | 116 + .../merchant_center_link_pb2_grpc.py | 3 + .../mobile_app_category_constant_pb2.py | 103 + .../mobile_app_category_constant_pb2_grpc.py | 3 + .../resources/mobile_device_constant_pb2.py | 134 + .../mobile_device_constant_pb2_grpc.py | 3 + .../v1/proto/resources/mutate_job_pb2.py | 202 + .../v1/proto/resources/mutate_job_pb2_grpc.py | 3 + .../operating_system_version_constant_pb2.py | 140 + ...rating_system_version_constant_pb2_grpc.py | 3 + .../resources/parental_status_view_pb2.py | 82 + .../parental_status_view_pb2_grpc.py | 3 + .../proto/resources/payments_account_pb2.py | 139 + .../resources/payments_account_pb2_grpc.py | 3 + .../product_bidding_category_constant_pb2.py | 159 + ...duct_bidding_category_constant_pb2_grpc.py | 3 + .../proto/resources/product_group_view_pb2.py | 82 + .../resources/product_group_view_pb2_grpc.py | 3 + .../v1/proto/resources/recommendation_pb2.py | 1028 ++ .../resources/recommendation_pb2_grpc.py | 3 + .../proto/resources/remarketing_action_pb2.py | 118 + .../resources/remarketing_action_pb2_grpc.py | 3 + .../proto/resources/search_term_view_pb2.py | 117 + .../resources/search_term_view_pb2_grpc.py | 3 + .../proto/resources/shared_criterion_pb2.py | 185 + .../resources/shared_criterion_pb2_grpc.py | 3 + .../v1/proto/resources/shared_set_pb2.py | 152 + .../v1/proto/resources/shared_set_pb2_grpc.py | 3 + .../shopping_performance_view_pb2.py | 86 + .../shopping_performance_view_pb2_grpc.py | 3 + .../v1/proto/resources/topic_constant_pb2.py | 118 + .../resources/topic_constant_pb2_grpc.py | 3 + .../v1/proto/resources/topic_view_pb2.py | 82 + .../v1/proto/resources/topic_view_pb2_grpc.py | 3 + .../v1/proto/resources/user_interest_pb2.py | 146 + .../proto/resources/user_interest_pb2_grpc.py | 3 + .../v1/proto/resources/user_list_pb2.py | 362 + .../v1/proto/resources/user_list_pb2_grpc.py | 3 + .../v1/proto/resources/video_pb2.py | 122 + .../v1/proto/resources/video_pb2_grpc.py | 3 + .../google_ads/v1/proto/services/__init__.py | 0 .../account_budget_proposal_service_pb2.py | 371 + ...ccount_budget_proposal_service_pb2_grpc.py | 89 + .../services/account_budget_service_pb2.py | 106 + .../account_budget_service_pb2_grpc.py | 51 + .../services/ad_group_ad_label_service_pb2.py | 378 + .../ad_group_ad_label_service_pb2_grpc.py | 65 + .../proto/services/ad_group_ad_service_pb2.py | 413 + .../services/ad_group_ad_service_pb2_grpc.py | 64 + .../ad_group_audience_view_service_pb2.py | 106 + ...ad_group_audience_view_service_pb2_grpc.py | 47 + .../ad_group_bid_modifier_service_pb2.py | 405 + .../ad_group_bid_modifier_service_pb2_grpc.py | 65 + .../ad_group_criterion_label_service_pb2.py | 380 + ..._group_criterion_label_service_pb2_grpc.py | 65 + .../ad_group_criterion_service_pb2.py | 403 + .../ad_group_criterion_service_pb2_grpc.py | 64 + .../ad_group_extension_setting_service_pb2.py | 406 + ...roup_extension_setting_service_pb2_grpc.py | 65 + .../services/ad_group_feed_service_pb2.py | 405 + .../ad_group_feed_service_pb2_grpc.py | 65 + .../services/ad_group_label_service_pb2.py | 377 + .../ad_group_label_service_pb2_grpc.py | 65 + .../v1/proto/services/ad_group_service_pb2.py | 403 + .../services/ad_group_service_pb2_grpc.py | 64 + .../services/ad_parameter_service_pb2.py | 403 + .../services/ad_parameter_service_pb2_grpc.py | 65 + .../services/ad_schedule_view_service_pb2.py | 106 + .../ad_schedule_view_service_pb2_grpc.py | 47 + .../services/age_range_view_service_pb2.py | 106 + .../age_range_view_service_pb2_grpc.py | 47 + .../services/bidding_strategy_service_pb2.py | 405 + .../bidding_strategy_service_pb2_grpc.py | 65 + .../services/billing_setup_service_pb2.py | 343 + .../billing_setup_service_pb2_grpc.py | 80 + .../campaign_audience_view_service_pb2.py | 106 + ...campaign_audience_view_service_pb2_grpc.py | 47 + .../campaign_bid_modifier_service_pb2.py | 405 + .../campaign_bid_modifier_service_pb2_grpc.py | 65 + .../services/campaign_budget_service_pb2.py | 405 + .../campaign_budget_service_pb2_grpc.py | 65 + .../campaign_criterion_service_pb2.py | 403 + .../campaign_criterion_service_pb2_grpc.py | 64 + ...mpaign_criterion_simulation_service_pb2.py | 107 + ...n_criterion_simulation_service_pb2_grpc.py | 47 + .../campaign_extension_setting_service_pb2.py | 406 + ...aign_extension_setting_service_pb2_grpc.py | 65 + .../services/campaign_feed_service_pb2.py | 405 + .../campaign_feed_service_pb2_grpc.py | 65 + .../services/campaign_label_service_pb2.py | 379 + .../campaign_label_service_pb2_grpc.py | 65 + .../v1/proto/services/campaign_service_pb2.py | 403 + .../services/campaign_service_pb2_grpc.py | 64 + .../campaign_shared_set_service_pb2.py | 379 + .../campaign_shared_set_service_pb2_grpc.py | 64 + .../services/carrier_constant_service_pb2.py | 106 + .../carrier_constant_service_pb2_grpc.py | 47 + .../services/change_status_service_pb2.py | 106 + .../change_status_service_pb2_grpc.py | 47 + .../proto/services/click_view_service_pb2.py | 106 + .../services/click_view_service_pb2_grpc.py | 47 + .../services/conversion_action_service_pb2.py | 406 + .../conversion_action_service_pb2_grpc.py | 65 + .../services/conversion_upload_service_pb2.py | 442 + .../conversion_upload_service_pb2_grpc.py | 46 + .../services/custom_interest_service_pb2.py | 364 + .../custom_interest_service_pb2_grpc.py | 64 + .../customer_client_link_service_pb2.py | 353 + .../customer_client_link_service_pb2_grpc.py | 64 + .../services/customer_client_service_pb2.py | 106 + .../customer_client_service_pb2_grpc.py | 47 + .../customer_extension_setting_service_pb2.py | 406 + ...omer_extension_setting_service_pb2_grpc.py | 65 + .../services/customer_feed_service_pb2.py | 405 + .../customer_feed_service_pb2_grpc.py | 65 + .../services/customer_label_service_pb2.py | 379 + .../customer_label_service_pb2_grpc.py | 65 + .../customer_manager_link_service_pb2.py | 344 + .../customer_manager_link_service_pb2_grpc.py | 64 + ...customer_negative_criterion_service_pb2.py | 378 + ...mer_negative_criterion_service_pb2_grpc.py | 64 + .../v1/proto/services/customer_service_pb2.py | 549 + .../services/customer_service_pb2_grpc.py | 99 + .../detail_placement_view_service_pb2.py | 106 + .../detail_placement_view_service_pb2_grpc.py | 47 + .../display_keyword_view_service_pb2.py | 106 + .../display_keyword_view_service_pb2_grpc.py | 47 + .../services/domain_category_service_pb2.py | 106 + .../domain_category_service_pb2_grpc.py | 47 + ...search_ads_search_term_view_service_pb2.py | 107 + ...h_ads_search_term_view_service_pb2_grpc.py | 47 + .../extension_feed_item_service_pb2.py | 378 + .../extension_feed_item_service_pb2_grpc.py | 65 + .../proto/services/feed_item_service_pb2.py | 403 + .../services/feed_item_service_pb2_grpc.py | 65 + .../services/feed_item_target_service_pb2.py | 342 + .../feed_item_target_service_pb2_grpc.py | 64 + .../services/feed_mapping_service_pb2.py | 377 + .../services/feed_mapping_service_pb2_grpc.py | 65 + .../feed_placeholder_view_service_pb2.py | 106 + .../feed_placeholder_view_service_pb2_grpc.py | 47 + .../v1/proto/services/feed_service_pb2.py | 403 + .../proto/services/feed_service_pb2_grpc.py | 65 + .../proto/services/gender_view_service_pb2.py | 106 + .../services/gender_view_service_pb2_grpc.py | 47 + .../geo_target_constant_service_pb2.py | 448 + .../geo_target_constant_service_pb2_grpc.py | 64 + .../services/geographic_view_service_pb2.py | 106 + .../geographic_view_service_pb2_grpc.py | 47 + .../services/google_ads_field_service_pb2.py | 257 + .../google_ads_field_service_pb2_grpc.py | 64 + .../proto/services/google_ads_service_pb2.py | 2403 +++++ .../services/google_ads_service_pb2_grpc.py | 63 + .../group_placement_view_service_pb2.py | 106 + .../group_placement_view_service_pb2_grpc.py | 47 + .../services/hotel_group_view_service_pb2.py | 106 + .../hotel_group_view_service_pb2_grpc.py | 47 + .../hotel_performance_view_service_pb2.py | 106 + ...hotel_performance_view_service_pb2_grpc.py | 47 + .../keyword_plan_ad_group_service_pb2.py | 405 + .../keyword_plan_ad_group_service_pb2_grpc.py | 65 + .../keyword_plan_campaign_service_pb2.py | 405 + .../keyword_plan_campaign_service_pb2_grpc.py | 65 + .../services/keyword_plan_idea_service_pb2.py | 447 + .../keyword_plan_idea_service_pb2_grpc.py | 46 + .../keyword_plan_keyword_service_pb2.py | 405 + .../keyword_plan_keyword_service_pb2_grpc.py | 65 + ...yword_plan_negative_keyword_service_pb2.py | 406 + ..._plan_negative_keyword_service_pb2_grpc.py | 65 + .../services/keyword_plan_service_pb2.py | 969 ++ .../services/keyword_plan_service_pb2_grpc.py | 99 + .../services/keyword_view_service_pb2.py | 106 + .../services/keyword_view_service_pb2_grpc.py | 47 + .../v1/proto/services/label_service_pb2.py | 402 + .../proto/services/label_service_pb2_grpc.py | 64 + .../services/language_constant_service_pb2.py | 106 + .../language_constant_service_pb2_grpc.py | 47 + .../services/location_view_service_pb2.py | 106 + .../location_view_service_pb2_grpc.py | 47 + .../managed_placement_view_service_pb2.py | 106 + ...managed_placement_view_service_pb2_grpc.py | 47 + .../proto/services/media_file_service_pb2.py | 363 + .../services/media_file_service_pb2_grpc.py | 64 + .../merchant_center_link_service_pb2.py | 458 + .../merchant_center_link_service_pb2_grpc.py | 83 + ...obile_app_category_constant_service_pb2.py | 106 + ..._app_category_constant_service_pb2_grpc.py | 47 + .../mobile_device_constant_service_pb2.py | 106 + ...mobile_device_constant_service_pb2_grpc.py | 47 + .../proto/services/mutate_job_service_pb2.py | 626 ++ .../services/mutate_job_service_pb2_grpc.py | 121 + ...ing_system_version_constant_service_pb2.py | 106 + ...ystem_version_constant_service_pb2_grpc.py | 47 + .../parental_status_view_service_pb2.py | 106 + .../parental_status_view_service_pb2_grpc.py | 47 + .../services/payments_account_service_pb2.py | 155 + .../payments_account_service_pb2_grpc.py | 50 + ...t_bidding_category_constant_service_pb2.py | 106 + ...ding_category_constant_service_pb2_grpc.py | 47 + .../product_group_view_service_pb2.py | 106 + .../product_group_view_service_pb2_grpc.py | 47 + .../services/recommendation_service_pb2.py | 877 ++ .../recommendation_service_pb2_grpc.py | 81 + .../remarketing_action_service_pb2.py | 391 + .../remarketing_action_service_pb2_grpc.py | 64 + .../services/search_term_view_service_pb2.py | 106 + .../search_term_view_service_pb2_grpc.py | 47 + .../services/shared_criterion_service_pb2.py | 379 + .../shared_criterion_service_pb2_grpc.py | 64 + .../proto/services/shared_set_service_pb2.py | 403 + .../services/shared_set_service_pb2_grpc.py | 64 + .../shopping_performance_view_service_pb2.py | 106 + ...pping_performance_view_service_pb2_grpc.py | 47 + .../services/topic_constant_service_pb2.py | 106 + .../topic_constant_service_pb2_grpc.py | 47 + .../proto/services/topic_view_service_pb2.py | 106 + .../services/topic_view_service_pb2_grpc.py | 47 + .../services/user_interest_service_pb2.py | 106 + .../user_interest_service_pb2_grpc.py | 47 + .../proto/services/user_list_service_pb2.py | 403 + .../services/user_list_service_pb2_grpc.py | 64 + .../v1/proto/services/video_service_pb2.py | 106 + .../proto/services/video_service_pb2_grpc.py | 47 + google/ads/google_ads/v1/services/__init__.py | 0 .../account_budget_proposal_service_client.py | 290 + ...t_budget_proposal_service_client_config.py | 33 + .../services/account_budget_service_client.py | 220 + .../account_budget_service_client_config.py | 28 + .../ad_group_ad_label_service_client.py | 281 + ...ad_group_ad_label_service_client_config.py | 33 + .../v1/services/ad_group_ad_service_client.py | 278 + .../ad_group_ad_service_client_config.py | 33 + .../ad_group_audience_view_service_client.py | 217 + ...oup_audience_view_service_client_config.py | 28 + .../ad_group_bid_modifier_service_client.py | 282 + ...roup_bid_modifier_service_client_config.py | 33 + ...ad_group_criterion_label_service_client.py | 282 + ...p_criterion_label_service_client_config.py | 33 + .../ad_group_criterion_service_client.py | 280 + ...d_group_criterion_service_client_config.py | 33 + ..._group_extension_setting_service_client.py | 286 + ...extension_setting_service_client_config.py | 33 + .../services/ad_group_feed_service_client.py | 279 + .../ad_group_feed_service_client_config.py | 33 + .../services/ad_group_label_service_client.py | 280 + .../ad_group_label_service_client_config.py | 33 + .../v1/services/ad_group_service_client.py | 276 + .../ad_group_service_client_config.py | 33 + .../services/ad_parameter_service_client.py | 279 + .../ad_parameter_service_client_config.py | 33 + .../ad_schedule_view_service_client.py | 216 + .../ad_schedule_view_service_client_config.py | 28 + .../services/age_range_view_service_client.py | 216 + .../age_range_view_service_client_config.py | 28 + .../bidding_strategy_service_client.py | 281 + .../bidding_strategy_service_client_config.py | 33 + .../services/billing_setup_service_client.py | 279 + .../billing_setup_service_client_config.py | 33 + .../campaign_audience_view_service_client.py | 217 + ...ign_audience_view_service_client_config.py | 28 + .../campaign_bid_modifier_service_client.py | 282 + ...aign_bid_modifier_service_client_config.py | 33 + .../campaign_budget_service_client.py | 281 + .../campaign_budget_service_client_config.py | 33 + .../campaign_criterion_service_client.py | 280 + ...ampaign_criterion_service_client_config.py | 33 + ...ign_criterion_simulation_service_client.py | 219 + ...terion_simulation_service_client_config.py | 29 + ...mpaign_extension_setting_service_client.py | 286 + ...extension_setting_service_client_config.py | 33 + .../services/campaign_feed_service_client.py | 280 + .../campaign_feed_service_client_config.py | 33 + .../services/campaign_label_service_client.py | 280 + .../campaign_label_service_client_config.py | 33 + .../v1/services/campaign_service_client.py | 278 + .../campaign_service_client_config.py | 33 + .../campaign_shared_set_service_client.py | 281 + ...mpaign_shared_set_service_client_config.py | 33 + .../carrier_constant_service_client.py | 215 + .../carrier_constant_service_client_config.py | 28 + .../services/change_status_service_client.py | 216 + .../change_status_service_client_config.py | 28 + .../v1/services/click_view_service_client.py | 215 + .../click_view_service_client_config.py | 28 + .../conversion_action_service_client.py | 281 + ...conversion_action_service_client_config.py | 33 + .../conversion_upload_service_client.py | 220 + ...conversion_upload_service_client_config.py | 28 + .../custom_interest_service_client.py | 274 + .../custom_interest_service_client_config.py | 33 + .../customer_client_link_service_client.py | 271 + ...tomer_client_link_service_client_config.py | 33 + .../customer_client_service_client.py | 216 + .../customer_client_service_client_config.py | 28 + ...stomer_extension_setting_service_client.py | 286 + ...extension_setting_service_client_config.py | 33 + .../services/customer_feed_service_client.py | 280 + .../customer_feed_service_client_config.py | 33 + .../services/customer_label_service_client.py | 280 + .../customer_label_service_client_config.py | 33 + .../customer_manager_link_service_client.py | 271 + ...omer_manager_link_service_client_config.py | 33 + ...tomer_negative_criterion_service_client.py | 283 + ...egative_criterion_service_client_config.py | 33 + .../v1/services/customer_service_client.py | 368 + .../customer_service_client_config.py | 43 + .../detail_placement_view_service_client.py | 217 + ...il_placement_view_service_client_config.py | 28 + .../display_keyword_view_service_client.py | 217 + ...play_keyword_view_service_client_config.py | 28 + .../domain_category_service_client.py | 216 + .../domain_category_service_client_config.py | 28 + ...rch_ads_search_term_view_service_client.py | 221 + ..._search_term_view_service_client_config.py | 29 + google/ads/google_ads/v1/services/enums.py | 9066 +++++++++++++++++ .../extension_feed_item_service_client.py | 277 + ...tension_feed_item_service_client_config.py | 33 + .../v1/services/feed_item_service_client.py | 279 + .../feed_item_service_client_config.py | 33 + .../feed_item_target_service_client.py | 270 + .../feed_item_target_service_client_config.py | 33 + .../services/feed_mapping_service_client.py | 279 + .../feed_mapping_service_client_config.py | 33 + .../feed_placeholder_view_service_client.py | 217 + ..._placeholder_view_service_client_config.py | 28 + .../v1/services/feed_service_client.py | 277 + .../v1/services/feed_service_client_config.py | 33 + .../v1/services/gender_view_service_client.py | 215 + .../gender_view_service_client_config.py | 28 + .../geo_target_constant_service_client.py | 295 + ...o_target_constant_service_client_config.py | 33 + .../geographic_view_service_client.py | 216 + .../geographic_view_service_client_config.py | 28 + .../google_ads_field_service_client.py | 286 + .../google_ads_field_service_client_config.py | 33 + .../v1/services/google_ads_service_client.py | 295 + .../google_ads_service_client_config.py | 33 + .../group_placement_view_service_client.py | 217 + ...up_placement_view_service_client_config.py | 28 + .../hotel_group_view_service_client.py | 216 + .../hotel_group_view_service_client_config.py | 28 + .../hotel_performance_view_service_client.py | 224 + ..._performance_view_service_client_config.py | 28 + .../keyword_plan_ad_group_service_client.py | 282 + ...ord_plan_ad_group_service_client_config.py | 33 + .../keyword_plan_campaign_service_client.py | 282 + ...ord_plan_campaign_service_client_config.py | 33 + .../keyword_plan_idea_service_client.py | 252 + ...keyword_plan_idea_service_client_config.py | 28 + .../keyword_plan_keyword_service_client.py | 282 + ...word_plan_keyword_service_client_config.py | 33 + ...rd_plan_negative_keyword_service_client.py | 285 + ..._negative_keyword_service_client_config.py | 33 + .../services/keyword_plan_service_client.py | 374 + .../keyword_plan_service_client_config.py | 43 + .../services/keyword_view_service_client.py | 215 + .../keyword_view_service_client_config.py | 28 + .../v1/services/label_service_client.py | 276 + .../services/label_service_client_config.py | 33 + .../language_constant_service_client.py | 215 + ...language_constant_service_client_config.py | 28 + .../services/location_view_service_client.py | 216 + .../location_view_service_client_config.py | 28 + .../managed_placement_view_service_client.py | 217 + ...ed_placement_view_service_client_config.py | 28 + .../v1/services/media_file_service_client.py | 278 + .../media_file_service_client_config.py | 33 + .../merchant_center_link_service_client.py | 322 + ...chant_center_link_service_client_config.py | 38 + ...le_app_category_constant_service_client.py | 217 + ...category_constant_service_client_config.py | 28 + .../mobile_device_constant_service_client.py | 216 + ...e_device_constant_service_client_config.py | 28 + .../v1/services/mutate_job_service_client.py | 462 + .../mutate_job_service_client_config.py | 48 + ..._system_version_constant_service_client.py | 218 + ..._version_constant_service_client_config.py | 29 + .../parental_status_view_service_client.py | 217 + ...ental_status_view_service_client_config.py | 28 + .../payments_account_service_client.py | 211 + .../payments_account_service_client_config.py | 28 + ...idding_category_constant_service_client.py | 218 + ...category_constant_service_client_config.py | 29 + .../product_group_view_service_client.py | 216 + ...roduct_group_view_service_client_config.py | 28 + .../services/recommendation_service_client.py | 338 + .../recommendation_service_client_config.py | 38 + .../remarketing_action_service_client.py | 280 + ...emarketing_action_service_client_config.py | 33 + .../search_term_view_service_client.py | 216 + .../search_term_view_service_client_config.py | 28 + .../shared_criterion_service_client.py | 279 + .../shared_criterion_service_client_config.py | 33 + .../v1/services/shared_set_service_client.py | 278 + .../shared_set_service_client_config.py | 33 + ...hopping_performance_view_service_client.py | 219 + ..._performance_view_service_client_config.py | 28 + .../services/topic_constant_service_client.py | 215 + .../topic_constant_service_client_config.py | 28 + .../v1/services/topic_view_service_client.py | 215 + .../topic_view_service_client_config.py | 28 + .../v1/services/transports/__init__.py | 0 ..._budget_proposal_service_grpc_transport.py | 134 + .../account_budget_service_grpc_transport.py | 117 + ...d_group_ad_label_service_grpc_transport.py | 133 + .../ad_group_ad_service_grpc_transport.py | 130 + ...up_audience_view_service_grpc_transport.py | 119 + ...oup_bid_modifier_service_grpc_transport.py | 134 + ..._criterion_label_service_grpc_transport.py | 134 + ..._group_criterion_service_grpc_transport.py | 133 + ...xtension_setting_service_grpc_transport.py | 134 + .../ad_group_feed_service_grpc_transport.py | 131 + .../ad_group_label_service_grpc_transport.py | 131 + .../ad_group_service_grpc_transport.py | 130 + .../ad_parameter_service_grpc_transport.py | 131 + ...ad_schedule_view_service_grpc_transport.py | 118 + .../age_range_view_service_grpc_transport.py | 117 + ...bidding_strategy_service_grpc_transport.py | 133 + .../billing_setup_service_grpc_transport.py | 130 + ...gn_audience_view_service_grpc_transport.py | 119 + ...ign_bid_modifier_service_grpc_transport.py | 134 + .../campaign_budget_service_grpc_transport.py | 133 + ...mpaign_criterion_service_grpc_transport.py | 133 + ...erion_simulation_service_grpc_transport.py | 119 + ...xtension_setting_service_grpc_transport.py | 134 + .../campaign_feed_service_grpc_transport.py | 131 + .../campaign_label_service_grpc_transport.py | 131 + .../campaign_service_grpc_transport.py | 130 + ...paign_shared_set_service_grpc_transport.py | 133 + ...carrier_constant_service_grpc_transport.py | 118 + .../change_status_service_grpc_transport.py | 117 + .../click_view_service_grpc_transport.py | 117 + ...onversion_action_service_grpc_transport.py | 134 + ...onversion_upload_service_grpc_transport.py | 119 + .../custom_interest_service_grpc_transport.py | 132 + ...omer_client_link_service_grpc_transport.py | 133 + .../customer_client_service_grpc_transport.py | 118 + ...xtension_setting_service_grpc_transport.py | 134 + .../customer_feed_service_grpc_transport.py | 131 + .../customer_label_service_grpc_transport.py | 131 + ...mer_manager_link_service_grpc_transport.py | 133 + ...gative_criterion_service_grpc_transport.py | 133 + .../customer_service_grpc_transport.py | 157 + ...l_placement_view_service_grpc_transport.py | 119 + ...lay_keyword_view_service_grpc_transport.py | 119 + .../domain_category_service_grpc_transport.py | 118 + ...search_term_view_service_grpc_transport.py | 119 + ...ension_feed_item_service_grpc_transport.py | 134 + .../feed_item_service_grpc_transport.py | 131 + ...feed_item_target_service_grpc_transport.py | 132 + .../feed_mapping_service_grpc_transport.py | 131 + ...placeholder_view_service_grpc_transport.py | 119 + .../transports/feed_service_grpc_transport.py | 131 + .../gender_view_service_grpc_transport.py | 117 + ..._target_constant_service_grpc_transport.py | 133 + .../geographic_view_service_grpc_transport.py | 118 + ...google_ads_field_service_grpc_transport.py | 132 + .../google_ads_service_grpc_transport.py | 130 + ...p_placement_view_service_grpc_transport.py | 119 + ...hotel_group_view_service_grpc_transport.py | 118 + ...performance_view_service_grpc_transport.py | 119 + ...rd_plan_ad_group_service_grpc_transport.py | 134 + ...rd_plan_campaign_service_grpc_transport.py | 134 + ...eyword_plan_idea_service_grpc_transport.py | 119 + ...ord_plan_keyword_service_grpc_transport.py | 134 + ...negative_keyword_service_grpc_transport.py | 134 + .../keyword_plan_service_grpc_transport.py | 158 + .../keyword_view_service_grpc_transport.py | 117 + .../label_service_grpc_transport.py | 130 + ...anguage_constant_service_grpc_transport.py | 119 + .../location_view_service_grpc_transport.py | 117 + ...d_placement_view_service_grpc_transport.py | 119 + .../media_file_service_grpc_transport.py | 130 + ...hant_center_link_service_grpc_transport.py | 147 + ...ategory_constant_service_grpc_transport.py | 119 + ..._device_constant_service_grpc_transport.py | 119 + .../mutate_job_service_grpc_transport.py | 181 + ...version_constant_service_grpc_transport.py | 119 + ...ntal_status_view_service_grpc_transport.py | 119 + ...payments_account_service_grpc_transport.py | 121 + ...ategory_constant_service_grpc_transport.py | 119 + ...oduct_group_view_service_grpc_transport.py | 119 + .../recommendation_service_grpc_transport.py | 143 + ...marketing_action_service_grpc_transport.py | 133 + ...search_term_view_service_grpc_transport.py | 118 + ...shared_criterion_service_grpc_transport.py | 132 + .../shared_set_service_grpc_transport.py | 130 + ...performance_view_service_grpc_transport.py | 119 + .../topic_constant_service_grpc_transport.py | 117 + .../topic_view_service_grpc_transport.py | 117 + .../user_interest_service_grpc_transport.py | 117 + .../user_list_service_grpc_transport.py | 130 + .../video_service_grpc_transport.py | 117 + .../services/user_interest_service_client.py | 216 + .../user_interest_service_client_config.py | 28 + .../v1/services/user_list_service_client.py | 278 + .../user_list_service_client_config.py | 33 + .../v1/services/video_service_client.py | 214 + .../services/video_service_client_config.py | 28 + google/ads/google_ads/v1/types.py | 1009 ++ setup.py | 2 +- tests/client_test.py | 56 +- 1309 files changed, 153136 insertions(+), 199 deletions(-) rename examples/{v0 => account_management}/__init__.py (100%) rename examples/{v0 => }/account_management/create_customer.py (96%) rename examples/{v0 => }/account_management/get_accessible_customers.py (96%) rename examples/{v0 => }/account_management/get_account_changes.py (93%) rename examples/{v0 => }/account_management/get_account_information.py (97%) rename examples/{v0/account_management => advanced_operations}/__init__.py (100%) rename examples/{v0 => }/advanced_operations/add_ad_group_bid_modifiers.py (93%) rename examples/{v0 => }/advanced_operations/add_expanded_text_ad_with_upgraded_urls.py (93%) rename examples/{v0 => }/advanced_operations/create_and_attach_shared_keyword_sets.py (87%) rename examples/{v0 => }/advanced_operations/find_and_remove_criteria_from_shared_set.py (93%) rename examples/{v0 => }/advanced_operations/get_ad_group_bid_modifiers.py (96%) rename examples/{v0 => }/advanced_operations/use_portfolio_bidding_strategy.py (91%) rename examples/{v0/advanced_operations => basic_operations}/__init__.py (100%) rename examples/{v0 => }/basic_operations/add_ad_groups.py (86%) rename examples/{v0 => }/basic_operations/add_campaigns.py (88%) rename examples/{v0 => }/basic_operations/add_expanded_text_ads.py (91%) rename examples/{v0 => }/basic_operations/add_keywords.py (94%) rename examples/{v0 => }/basic_operations/get_ad_groups.py (97%) rename examples/{v0 => }/basic_operations/get_artifact_metadata.py (98%) rename examples/{v0 => }/basic_operations/get_campaigns.py (94%) rename examples/{v0 => }/basic_operations/get_expanded_text_ads.py (97%) rename examples/{v0 => }/basic_operations/get_keywords.py (97%) create mode 100644 examples/basic_operations/handle_partial_failure.py rename examples/{v0 => }/basic_operations/pause_ad.py (92%) rename examples/{v0 => }/basic_operations/remove_ad.py (96%) rename examples/{v0 => }/basic_operations/remove_ad_group.py (94%) rename examples/{v0 => }/basic_operations/remove_campaign.py (94%) rename examples/{v0 => }/basic_operations/remove_keyword.py (94%) rename examples/{v0 => }/basic_operations/update_ad_group.py (92%) rename examples/{v0 => }/basic_operations/update_campaign.py (92%) rename examples/{v0 => }/basic_operations/update_keyword.py (93%) rename examples/{v0/basic_operations => billing}/__init__.py (100%) rename examples/{v0 => }/billing/add_account_budget_proposal.py (94%) rename examples/{v0 => }/billing/get_account_budget_proposals.py (98%) rename examples/{v0 => }/billing/get_account_budgets.py (98%) rename examples/{v0 => }/billing/get_billing_setups.py (95%) rename examples/{v0 => }/billing/remove_billing_setup.py (95%) rename examples/{v0/billing => campaign_management}/__init__.py (100%) rename examples/{v0 => }/campaign_management/add_campaign_bid_modifier.py (94%) rename examples/{v0 => }/campaign_management/get_all_disapproved_ads.py (96%) rename examples/{v0/campaign_management => hotel_ads}/__init__.py (100%) rename examples/{v0 => }/hotel_ads/add_hotel_ad.py (89%) rename examples/{v0 => }/hotel_ads/add_hotel_ad_group_bid_modifiers.py (91%) rename examples/{v0/hotel_ads => recommendations}/__init__.py (100%) rename examples/{v0 => }/recommendations/apply_recommendation.py (97%) rename examples/{v0 => }/recommendations/dismiss_recommendation.py (100%) rename examples/{v0 => }/recommendations/get_text_ad_recommendations.py (97%) rename examples/{v0/recommendations => remarketing}/__init__.py (100%) rename examples/{v0 => }/remarketing/add_conversion_action.py (95%) rename examples/{v0/remarketing => reporting}/__init__.py (100%) rename examples/{v0 => }/reporting/get_hotel_ads_performance.py (98%) rename examples/{v0 => }/reporting/get_keyword_stats.py (98%) rename examples/{v0 => }/shopping/add_shopping_product_ad.py (87%) rename examples/{v0/reporting => targeting}/__init__.py (100%) rename examples/{v0 => }/targeting/add_campaign_targeting_criteria.py (88%) rename examples/{v0 => }/targeting/get_campaign_targeting_criteria.py (95%) rename examples/{v0 => }/targeting/get_geo_target_constant_by_names.py (90%) create mode 100644 google/ads/google_ads/v1/__init__.py rename {examples/v0/targeting => google/ads/google_ads/v1/proto}/__init__.py (100%) create mode 100644 google/ads/google_ads/v1/proto/common/__init__.py create mode 100644 google/ads/google_ads/v1/proto/common/ad_asset_pb2.py create mode 100644 google/ads/google_ads/v1/proto/common/ad_asset_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/common/ad_type_infos_pb2.py create mode 100644 google/ads/google_ads/v1/proto/common/ad_type_infos_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/common/bidding_pb2.py create mode 100644 google/ads/google_ads/v1/proto/common/bidding_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/common/click_location_pb2.py create mode 100644 google/ads/google_ads/v1/proto/common/click_location_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/common/criteria_pb2.py create mode 100644 google/ads/google_ads/v1/proto/common/criteria_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/common/criterion_category_availability_pb2.py create mode 100644 google/ads/google_ads/v1/proto/common/criterion_category_availability_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/common/custom_parameter_pb2.py create mode 100644 google/ads/google_ads/v1/proto/common/custom_parameter_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/common/dates_pb2.py create mode 100644 google/ads/google_ads/v1/proto/common/dates_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/common/explorer_auto_optimizer_setting_pb2.py create mode 100644 google/ads/google_ads/v1/proto/common/explorer_auto_optimizer_setting_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/common/extensions_pb2.py create mode 100644 google/ads/google_ads/v1/proto/common/extensions_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/common/feed_common_pb2.py create mode 100644 google/ads/google_ads/v1/proto/common/feed_common_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/common/frequency_cap_pb2.py create mode 100644 google/ads/google_ads/v1/proto/common/frequency_cap_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/common/keyword_plan_common_pb2.py create mode 100644 google/ads/google_ads/v1/proto/common/keyword_plan_common_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/common/matching_function_pb2.py create mode 100644 google/ads/google_ads/v1/proto/common/matching_function_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/common/metrics_pb2.py create mode 100644 google/ads/google_ads/v1/proto/common/metrics_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/common/policy_pb2.py create mode 100644 google/ads/google_ads/v1/proto/common/policy_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/common/real_time_bidding_setting_pb2.py create mode 100644 google/ads/google_ads/v1/proto/common/real_time_bidding_setting_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/common/segments_pb2.py create mode 100644 google/ads/google_ads/v1/proto/common/segments_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/common/simulation_pb2.py create mode 100644 google/ads/google_ads/v1/proto/common/simulation_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/common/tag_snippet_pb2.py create mode 100644 google/ads/google_ads/v1/proto/common/tag_snippet_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/common/targeting_setting_pb2.py create mode 100644 google/ads/google_ads/v1/proto/common/targeting_setting_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/common/text_label_pb2.py create mode 100644 google/ads/google_ads/v1/proto/common/text_label_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/common/url_collection_pb2.py create mode 100644 google/ads/google_ads/v1/proto/common/url_collection_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/common/user_lists_pb2.py create mode 100644 google/ads/google_ads/v1/proto/common/user_lists_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/common/value_pb2.py create mode 100644 google/ads/google_ads/v1/proto/common/value_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/__init__.py create mode 100644 google/ads/google_ads/v1/proto/enums/access_reason_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/access_reason_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/account_budget_proposal_status_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/account_budget_proposal_status_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/account_budget_proposal_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/account_budget_proposal_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/account_budget_status_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/account_budget_status_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/ad_customizer_placeholder_field_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/ad_customizer_placeholder_field_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/ad_group_ad_rotation_mode_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/ad_group_ad_rotation_mode_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/ad_group_ad_status_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/ad_group_ad_status_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/ad_group_criterion_status_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/ad_group_criterion_status_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/ad_group_status_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/ad_group_status_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/ad_group_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/ad_group_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/ad_network_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/ad_network_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/ad_serving_optimization_status_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/ad_serving_optimization_status_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/ad_strength_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/ad_strength_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/ad_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/ad_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/advertising_channel_sub_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/advertising_channel_sub_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/advertising_channel_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/advertising_channel_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/affiliate_location_feed_relationship_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/affiliate_location_feed_relationship_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/affiliate_location_placeholder_field_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/affiliate_location_placeholder_field_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/age_range_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/age_range_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/app_payment_model_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/app_payment_model_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/app_placeholder_field_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/app_placeholder_field_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/app_store_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/app_store_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/attribution_model_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/attribution_model_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/bid_modifier_source_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/bid_modifier_source_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/bidding_source_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/bidding_source_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/bidding_strategy_status_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/bidding_strategy_status_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/bidding_strategy_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/bidding_strategy_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/billing_setup_status_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/billing_setup_status_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/brand_safety_suitability_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/brand_safety_suitability_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/budget_delivery_method_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/budget_delivery_method_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/budget_period_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/budget_period_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/budget_status_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/budget_status_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/call_conversion_reporting_state_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/call_conversion_reporting_state_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/call_placeholder_field_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/call_placeholder_field_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/callout_placeholder_field_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/callout_placeholder_field_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/campaign_serving_status_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/campaign_serving_status_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/campaign_shared_set_status_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/campaign_shared_set_status_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/campaign_status_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/campaign_status_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/change_status_operation_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/change_status_operation_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/change_status_resource_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/change_status_resource_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/click_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/click_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/content_label_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/content_label_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/conversion_action_category_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/conversion_action_category_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/conversion_action_counting_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/conversion_action_counting_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/conversion_action_status_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/conversion_action_status_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/conversion_action_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/conversion_action_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/conversion_attribution_event_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/conversion_attribution_event_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/conversion_lag_bucket_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/conversion_lag_bucket_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/conversion_or_adjustment_lag_bucket_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/conversion_or_adjustment_lag_bucket_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/criterion_category_channel_availability_mode_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/criterion_category_channel_availability_mode_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/criterion_category_locale_availability_mode_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/criterion_category_locale_availability_mode_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/criterion_system_serving_status_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/criterion_system_serving_status_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/criterion_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/criterion_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/custom_interest_member_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/custom_interest_member_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/custom_interest_status_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/custom_interest_status_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/custom_interest_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/custom_interest_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/custom_placeholder_field_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/custom_placeholder_field_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/customer_match_upload_key_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/customer_match_upload_key_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/data_driven_model_status_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/data_driven_model_status_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/day_of_week_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/day_of_week_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/device_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/device_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/display_ad_format_setting_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/display_ad_format_setting_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/dsa_page_feed_criterion_field_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/dsa_page_feed_criterion_field_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/education_placeholder_field_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/education_placeholder_field_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/extension_setting_device_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/extension_setting_device_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/extension_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/extension_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/external_conversion_source_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/external_conversion_source_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/feed_attribute_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/feed_attribute_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/feed_item_quality_approval_status_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/feed_item_quality_approval_status_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/feed_item_quality_disapproval_reason_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/feed_item_quality_disapproval_reason_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/feed_item_status_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/feed_item_status_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/feed_item_target_device_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/feed_item_target_device_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/feed_item_target_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/feed_item_target_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/feed_item_validation_status_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/feed_item_validation_status_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/feed_link_status_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/feed_link_status_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/feed_mapping_criterion_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/feed_mapping_criterion_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/feed_mapping_status_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/feed_mapping_status_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/feed_origin_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/feed_origin_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/feed_status_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/feed_status_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/flight_placeholder_field_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/flight_placeholder_field_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/frequency_cap_event_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/frequency_cap_event_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/frequency_cap_level_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/frequency_cap_level_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/frequency_cap_time_unit_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/frequency_cap_time_unit_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/gender_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/gender_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/geo_target_constant_status_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/geo_target_constant_status_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/geo_targeting_restriction_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/geo_targeting_restriction_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/geo_targeting_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/geo_targeting_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/google_ads_field_category_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/google_ads_field_category_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/google_ads_field_data_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/google_ads_field_data_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/hotel_date_selection_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/hotel_date_selection_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/hotel_placeholder_field_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/hotel_placeholder_field_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/income_range_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/income_range_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/interaction_event_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/interaction_event_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/interaction_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/interaction_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/job_placeholder_field_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/job_placeholder_field_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/keyword_match_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/keyword_match_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/keyword_plan_competition_level_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/keyword_plan_competition_level_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/keyword_plan_forecast_interval_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/keyword_plan_forecast_interval_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/keyword_plan_network_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/keyword_plan_network_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/label_status_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/label_status_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/listing_custom_attribute_index_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/listing_custom_attribute_index_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/listing_group_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/listing_group_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/local_placeholder_field_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/local_placeholder_field_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/location_extension_targeting_criterion_field_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/location_extension_targeting_criterion_field_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/location_placeholder_field_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/location_placeholder_field_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/manager_link_status_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/manager_link_status_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/matching_function_context_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/matching_function_context_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/matching_function_operator_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/matching_function_operator_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/media_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/media_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/merchant_center_link_status_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/merchant_center_link_status_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/message_placeholder_field_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/message_placeholder_field_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/mime_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/mime_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/minute_of_hour_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/minute_of_hour_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/mobile_device_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/mobile_device_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/month_of_year_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/month_of_year_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/mutate_job_status_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/mutate_job_status_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/negative_geo_target_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/negative_geo_target_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/operating_system_version_operator_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/operating_system_version_operator_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/page_one_promoted_strategy_goal_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/page_one_promoted_strategy_goal_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/parental_status_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/parental_status_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/placeholder_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/placeholder_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/placement_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/placement_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/policy_approval_status_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/policy_approval_status_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/policy_review_status_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/policy_review_status_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/policy_topic_entry_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/policy_topic_entry_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/policy_topic_evidence_destination_mismatch_url_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/policy_topic_evidence_destination_mismatch_url_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/positive_geo_target_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/positive_geo_target_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/preferred_content_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/preferred_content_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/price_extension_price_qualifier_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/price_extension_price_qualifier_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/price_extension_price_unit_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/price_extension_price_unit_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/price_extension_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/price_extension_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/price_placeholder_field_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/price_placeholder_field_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/product_bidding_category_level_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/product_bidding_category_level_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/product_bidding_category_status_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/product_bidding_category_status_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/product_channel_exclusivity_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/product_channel_exclusivity_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/product_channel_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/product_channel_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/product_condition_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/product_condition_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/product_type_level_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/product_type_level_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/promotion_extension_discount_modifier_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/promotion_extension_discount_modifier_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/promotion_extension_occasion_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/promotion_extension_occasion_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/promotion_placeholder_field_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/promotion_placeholder_field_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/proximity_radius_units_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/proximity_radius_units_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/quality_score_bucket_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/quality_score_bucket_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/real_estate_placeholder_field_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/real_estate_placeholder_field_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/recommendation_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/recommendation_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/search_term_match_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/search_term_match_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/search_term_targeting_status_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/search_term_targeting_status_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/served_asset_field_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/served_asset_field_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/shared_set_status_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/shared_set_status_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/shared_set_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/shared_set_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/simulation_modification_method_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/simulation_modification_method_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/simulation_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/simulation_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/sitelink_placeholder_field_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/sitelink_placeholder_field_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/slot_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/slot_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/spending_limit_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/spending_limit_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/structured_snippet_placeholder_field_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/structured_snippet_placeholder_field_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/system_managed_entity_source_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/system_managed_entity_source_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/target_cpa_opt_in_recommendation_goal_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/target_cpa_opt_in_recommendation_goal_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/target_impression_share_location_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/target_impression_share_location_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/targeting_dimension_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/targeting_dimension_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/time_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/time_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/tracking_code_page_format_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/tracking_code_page_format_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/tracking_code_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/tracking_code_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/travel_placeholder_field_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/travel_placeholder_field_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/user_interest_taxonomy_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/user_interest_taxonomy_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/user_list_access_status_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/user_list_access_status_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/user_list_closing_reason_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/user_list_closing_reason_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/user_list_combined_rule_operator_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/user_list_combined_rule_operator_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/user_list_crm_data_source_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/user_list_crm_data_source_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/user_list_date_rule_item_operator_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/user_list_date_rule_item_operator_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/user_list_logical_rule_operator_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/user_list_logical_rule_operator_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/user_list_membership_status_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/user_list_membership_status_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/user_list_number_rule_item_operator_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/user_list_number_rule_item_operator_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/user_list_prepopulation_status_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/user_list_prepopulation_status_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/user_list_rule_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/user_list_rule_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/user_list_size_range_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/user_list_size_range_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/user_list_string_rule_item_operator_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/user_list_string_rule_item_operator_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/user_list_type_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/user_list_type_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/vanity_pharma_display_url_mode_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/vanity_pharma_display_url_mode_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/vanity_pharma_text_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/vanity_pharma_text_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/webpage_condition_operand_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/webpage_condition_operand_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/enums/webpage_condition_operator_pb2.py create mode 100644 google/ads/google_ads/v1/proto/enums/webpage_condition_operator_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/__init__.py create mode 100644 google/ads/google_ads/v1/proto/errors/account_budget_proposal_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/account_budget_proposal_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/ad_customizer_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/ad_customizer_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/ad_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/ad_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/ad_group_ad_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/ad_group_ad_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/ad_group_bid_modifier_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/ad_group_bid_modifier_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/ad_group_criterion_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/ad_group_criterion_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/ad_group_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/ad_group_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/ad_group_feed_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/ad_group_feed_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/ad_parameter_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/ad_parameter_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/ad_sharing_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/ad_sharing_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/adx_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/adx_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/authentication_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/authentication_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/authorization_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/authorization_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/bidding_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/bidding_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/bidding_strategy_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/bidding_strategy_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/billing_setup_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/billing_setup_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/campaign_budget_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/campaign_budget_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/campaign_criterion_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/campaign_criterion_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/campaign_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/campaign_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/campaign_feed_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/campaign_feed_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/campaign_shared_set_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/campaign_shared_set_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/change_status_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/change_status_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/collection_size_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/collection_size_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/context_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/context_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/conversion_action_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/conversion_action_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/conversion_upload_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/conversion_upload_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/country_code_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/country_code_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/criterion_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/criterion_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/custom_interest_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/custom_interest_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/customer_client_link_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/customer_client_link_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/customer_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/customer_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/customer_feed_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/customer_feed_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/customer_manager_link_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/customer_manager_link_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/database_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/database_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/date_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/date_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/date_range_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/date_range_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/distinct_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/distinct_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/enum_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/enum_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/errors_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/errors_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/extension_feed_item_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/extension_feed_item_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/extension_setting_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/extension_setting_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/feed_attribute_reference_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/feed_attribute_reference_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/feed_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/feed_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/feed_item_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/feed_item_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/feed_item_target_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/feed_item_target_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/feed_item_validation_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/feed_item_validation_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/feed_mapping_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/feed_mapping_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/field_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/field_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/field_mask_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/field_mask_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/function_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/function_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/function_parsing_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/function_parsing_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/geo_target_constant_suggestion_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/geo_target_constant_suggestion_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/header_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/header_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/id_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/id_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/image_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/image_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/internal_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/internal_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/keyword_plan_ad_group_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/keyword_plan_ad_group_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/keyword_plan_campaign_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/keyword_plan_campaign_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/keyword_plan_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/keyword_plan_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/keyword_plan_idea_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/keyword_plan_idea_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/keyword_plan_keyword_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/keyword_plan_keyword_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/keyword_plan_negative_keyword_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/keyword_plan_negative_keyword_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/label_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/label_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/language_code_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/language_code_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/list_operation_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/list_operation_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/media_bundle_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/media_bundle_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/media_file_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/media_file_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/multiplier_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/multiplier_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/mutate_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/mutate_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/mutate_job_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/mutate_job_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/new_resource_creation_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/new_resource_creation_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/not_empty_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/not_empty_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/null_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/null_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/operation_access_denied_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/operation_access_denied_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/operator_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/operator_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/partial_failure_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/partial_failure_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/policy_finding_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/policy_finding_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/policy_validation_parameter_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/policy_validation_parameter_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/policy_violation_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/policy_violation_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/query_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/query_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/quota_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/quota_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/range_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/range_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/recommendation_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/recommendation_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/region_code_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/region_code_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/request_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/request_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/resource_access_denied_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/resource_access_denied_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/resource_count_limit_exceeded_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/resource_count_limit_exceeded_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/setting_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/setting_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/shared_criterion_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/shared_criterion_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/shared_set_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/shared_set_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/string_format_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/string_format_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/string_length_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/string_length_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/url_field_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/url_field_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/errors/user_list_error_pb2.py create mode 100644 google/ads/google_ads/v1/proto/errors/user_list_error_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/__init__.py create mode 100644 google/ads/google_ads/v1/proto/resources/account_budget_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/account_budget_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/account_budget_proposal_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/account_budget_proposal_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/ad_group_ad_label_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/ad_group_ad_label_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/ad_group_ad_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/ad_group_ad_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/ad_group_audience_view_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/ad_group_audience_view_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/ad_group_bid_modifier_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/ad_group_bid_modifier_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/ad_group_criterion_label_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/ad_group_criterion_label_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/ad_group_criterion_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/ad_group_criterion_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/ad_group_extension_setting_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/ad_group_extension_setting_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/ad_group_feed_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/ad_group_feed_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/ad_group_label_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/ad_group_label_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/ad_group_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/ad_group_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/ad_parameter_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/ad_parameter_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/ad_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/ad_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/ad_schedule_view_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/ad_schedule_view_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/age_range_view_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/age_range_view_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/bidding_strategy_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/bidding_strategy_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/billing_setup_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/billing_setup_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/campaign_audience_view_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/campaign_audience_view_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/campaign_bid_modifier_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/campaign_bid_modifier_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/campaign_budget_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/campaign_budget_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/campaign_criterion_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/campaign_criterion_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/campaign_criterion_simulation_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/campaign_criterion_simulation_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/campaign_extension_setting_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/campaign_extension_setting_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/campaign_feed_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/campaign_feed_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/campaign_label_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/campaign_label_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/campaign_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/campaign_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/campaign_shared_set_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/campaign_shared_set_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/carrier_constant_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/carrier_constant_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/change_status_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/change_status_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/click_view_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/click_view_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/conversion_action_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/conversion_action_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/custom_interest_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/custom_interest_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/customer_client_link_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/customer_client_link_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/customer_client_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/customer_client_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/customer_extension_setting_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/customer_extension_setting_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/customer_feed_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/customer_feed_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/customer_label_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/customer_label_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/customer_manager_link_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/customer_manager_link_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/customer_negative_criterion_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/customer_negative_criterion_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/customer_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/customer_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/detail_placement_view_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/detail_placement_view_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/display_keyword_view_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/display_keyword_view_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/domain_category_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/domain_category_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/dynamic_search_ads_search_term_view_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/dynamic_search_ads_search_term_view_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/extension_feed_item_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/extension_feed_item_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/feed_item_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/feed_item_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/feed_item_target_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/feed_item_target_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/feed_mapping_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/feed_mapping_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/feed_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/feed_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/feed_placeholder_view_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/feed_placeholder_view_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/gender_view_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/gender_view_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/geo_target_constant_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/geo_target_constant_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/geographic_view_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/geographic_view_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/google_ads_field_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/google_ads_field_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/group_placement_view_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/group_placement_view_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/hotel_group_view_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/hotel_group_view_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/hotel_performance_view_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/hotel_performance_view_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/keyword_plan_ad_group_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/keyword_plan_ad_group_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/keyword_plan_campaign_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/keyword_plan_campaign_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/keyword_plan_keyword_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/keyword_plan_keyword_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/keyword_plan_negative_keyword_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/keyword_plan_negative_keyword_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/keyword_plan_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/keyword_plan_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/keyword_view_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/keyword_view_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/label_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/label_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/language_constant_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/language_constant_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/location_view_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/location_view_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/managed_placement_view_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/managed_placement_view_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/media_file_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/media_file_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/merchant_center_link_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/merchant_center_link_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/mobile_app_category_constant_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/mobile_app_category_constant_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/mobile_device_constant_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/mobile_device_constant_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/mutate_job_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/mutate_job_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/operating_system_version_constant_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/operating_system_version_constant_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/parental_status_view_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/parental_status_view_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/payments_account_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/payments_account_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/product_bidding_category_constant_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/product_bidding_category_constant_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/product_group_view_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/product_group_view_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/recommendation_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/recommendation_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/remarketing_action_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/remarketing_action_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/search_term_view_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/search_term_view_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/shared_criterion_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/shared_criterion_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/shared_set_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/shared_set_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/shopping_performance_view_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/shopping_performance_view_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/topic_constant_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/topic_constant_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/topic_view_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/topic_view_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/user_interest_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/user_interest_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/user_list_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/user_list_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/resources/video_pb2.py create mode 100644 google/ads/google_ads/v1/proto/resources/video_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/__init__.py create mode 100644 google/ads/google_ads/v1/proto/services/account_budget_proposal_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/account_budget_proposal_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/account_budget_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/account_budget_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/ad_group_ad_label_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/ad_group_ad_label_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/ad_group_ad_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/ad_group_ad_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/ad_group_audience_view_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/ad_group_audience_view_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/ad_group_bid_modifier_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/ad_group_bid_modifier_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/ad_group_criterion_label_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/ad_group_criterion_label_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/ad_group_criterion_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/ad_group_criterion_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/ad_group_extension_setting_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/ad_group_extension_setting_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/ad_group_feed_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/ad_group_feed_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/ad_group_label_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/ad_group_label_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/ad_group_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/ad_group_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/ad_parameter_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/ad_parameter_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/ad_schedule_view_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/ad_schedule_view_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/age_range_view_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/age_range_view_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/bidding_strategy_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/bidding_strategy_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/billing_setup_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/billing_setup_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/campaign_audience_view_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/campaign_audience_view_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/campaign_bid_modifier_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/campaign_bid_modifier_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/campaign_budget_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/campaign_budget_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/campaign_criterion_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/campaign_criterion_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/campaign_criterion_simulation_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/campaign_criterion_simulation_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/campaign_extension_setting_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/campaign_extension_setting_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/campaign_feed_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/campaign_feed_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/campaign_label_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/campaign_label_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/campaign_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/campaign_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/campaign_shared_set_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/campaign_shared_set_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/carrier_constant_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/carrier_constant_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/change_status_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/change_status_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/click_view_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/click_view_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/conversion_action_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/conversion_action_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/conversion_upload_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/conversion_upload_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/custom_interest_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/custom_interest_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/customer_client_link_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/customer_client_link_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/customer_client_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/customer_client_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/customer_extension_setting_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/customer_extension_setting_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/customer_feed_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/customer_feed_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/customer_label_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/customer_label_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/customer_manager_link_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/customer_manager_link_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/customer_negative_criterion_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/customer_negative_criterion_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/customer_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/customer_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/detail_placement_view_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/detail_placement_view_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/display_keyword_view_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/display_keyword_view_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/domain_category_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/domain_category_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/dynamic_search_ads_search_term_view_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/dynamic_search_ads_search_term_view_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/extension_feed_item_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/extension_feed_item_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/feed_item_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/feed_item_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/feed_item_target_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/feed_item_target_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/feed_mapping_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/feed_mapping_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/feed_placeholder_view_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/feed_placeholder_view_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/feed_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/feed_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/gender_view_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/gender_view_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/geo_target_constant_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/geo_target_constant_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/geographic_view_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/geographic_view_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/google_ads_field_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/google_ads_field_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/google_ads_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/google_ads_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/group_placement_view_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/group_placement_view_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/hotel_group_view_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/hotel_group_view_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/hotel_performance_view_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/hotel_performance_view_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/keyword_plan_ad_group_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/keyword_plan_ad_group_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/keyword_plan_campaign_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/keyword_plan_campaign_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/keyword_plan_idea_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/keyword_plan_idea_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/keyword_plan_keyword_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/keyword_plan_keyword_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/keyword_plan_negative_keyword_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/keyword_plan_negative_keyword_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/keyword_plan_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/keyword_plan_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/keyword_view_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/keyword_view_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/label_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/label_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/language_constant_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/language_constant_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/location_view_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/location_view_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/managed_placement_view_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/managed_placement_view_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/media_file_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/media_file_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/merchant_center_link_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/merchant_center_link_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/mobile_app_category_constant_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/mobile_app_category_constant_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/mobile_device_constant_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/mobile_device_constant_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/mutate_job_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/mutate_job_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/operating_system_version_constant_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/operating_system_version_constant_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/parental_status_view_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/parental_status_view_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/payments_account_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/payments_account_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/product_bidding_category_constant_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/product_bidding_category_constant_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/product_group_view_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/product_group_view_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/recommendation_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/recommendation_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/remarketing_action_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/remarketing_action_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/search_term_view_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/search_term_view_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/shared_criterion_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/shared_criterion_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/shared_set_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/shared_set_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/shopping_performance_view_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/shopping_performance_view_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/topic_constant_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/topic_constant_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/topic_view_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/topic_view_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/user_interest_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/user_interest_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/user_list_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/user_list_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/proto/services/video_service_pb2.py create mode 100644 google/ads/google_ads/v1/proto/services/video_service_pb2_grpc.py create mode 100644 google/ads/google_ads/v1/services/__init__.py create mode 100644 google/ads/google_ads/v1/services/account_budget_proposal_service_client.py create mode 100644 google/ads/google_ads/v1/services/account_budget_proposal_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/account_budget_service_client.py create mode 100644 google/ads/google_ads/v1/services/account_budget_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/ad_group_ad_label_service_client.py create mode 100644 google/ads/google_ads/v1/services/ad_group_ad_label_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/ad_group_ad_service_client.py create mode 100644 google/ads/google_ads/v1/services/ad_group_ad_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/ad_group_audience_view_service_client.py create mode 100644 google/ads/google_ads/v1/services/ad_group_audience_view_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/ad_group_bid_modifier_service_client.py create mode 100644 google/ads/google_ads/v1/services/ad_group_bid_modifier_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/ad_group_criterion_label_service_client.py create mode 100644 google/ads/google_ads/v1/services/ad_group_criterion_label_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/ad_group_criterion_service_client.py create mode 100644 google/ads/google_ads/v1/services/ad_group_criterion_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/ad_group_extension_setting_service_client.py create mode 100644 google/ads/google_ads/v1/services/ad_group_extension_setting_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/ad_group_feed_service_client.py create mode 100644 google/ads/google_ads/v1/services/ad_group_feed_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/ad_group_label_service_client.py create mode 100644 google/ads/google_ads/v1/services/ad_group_label_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/ad_group_service_client.py create mode 100644 google/ads/google_ads/v1/services/ad_group_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/ad_parameter_service_client.py create mode 100644 google/ads/google_ads/v1/services/ad_parameter_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/ad_schedule_view_service_client.py create mode 100644 google/ads/google_ads/v1/services/ad_schedule_view_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/age_range_view_service_client.py create mode 100644 google/ads/google_ads/v1/services/age_range_view_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/bidding_strategy_service_client.py create mode 100644 google/ads/google_ads/v1/services/bidding_strategy_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/billing_setup_service_client.py create mode 100644 google/ads/google_ads/v1/services/billing_setup_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/campaign_audience_view_service_client.py create mode 100644 google/ads/google_ads/v1/services/campaign_audience_view_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/campaign_bid_modifier_service_client.py create mode 100644 google/ads/google_ads/v1/services/campaign_bid_modifier_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/campaign_budget_service_client.py create mode 100644 google/ads/google_ads/v1/services/campaign_budget_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/campaign_criterion_service_client.py create mode 100644 google/ads/google_ads/v1/services/campaign_criterion_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/campaign_criterion_simulation_service_client.py create mode 100644 google/ads/google_ads/v1/services/campaign_criterion_simulation_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/campaign_extension_setting_service_client.py create mode 100644 google/ads/google_ads/v1/services/campaign_extension_setting_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/campaign_feed_service_client.py create mode 100644 google/ads/google_ads/v1/services/campaign_feed_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/campaign_label_service_client.py create mode 100644 google/ads/google_ads/v1/services/campaign_label_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/campaign_service_client.py create mode 100644 google/ads/google_ads/v1/services/campaign_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/campaign_shared_set_service_client.py create mode 100644 google/ads/google_ads/v1/services/campaign_shared_set_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/carrier_constant_service_client.py create mode 100644 google/ads/google_ads/v1/services/carrier_constant_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/change_status_service_client.py create mode 100644 google/ads/google_ads/v1/services/change_status_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/click_view_service_client.py create mode 100644 google/ads/google_ads/v1/services/click_view_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/conversion_action_service_client.py create mode 100644 google/ads/google_ads/v1/services/conversion_action_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/conversion_upload_service_client.py create mode 100644 google/ads/google_ads/v1/services/conversion_upload_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/custom_interest_service_client.py create mode 100644 google/ads/google_ads/v1/services/custom_interest_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/customer_client_link_service_client.py create mode 100644 google/ads/google_ads/v1/services/customer_client_link_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/customer_client_service_client.py create mode 100644 google/ads/google_ads/v1/services/customer_client_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/customer_extension_setting_service_client.py create mode 100644 google/ads/google_ads/v1/services/customer_extension_setting_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/customer_feed_service_client.py create mode 100644 google/ads/google_ads/v1/services/customer_feed_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/customer_label_service_client.py create mode 100644 google/ads/google_ads/v1/services/customer_label_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/customer_manager_link_service_client.py create mode 100644 google/ads/google_ads/v1/services/customer_manager_link_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/customer_negative_criterion_service_client.py create mode 100644 google/ads/google_ads/v1/services/customer_negative_criterion_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/customer_service_client.py create mode 100644 google/ads/google_ads/v1/services/customer_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/detail_placement_view_service_client.py create mode 100644 google/ads/google_ads/v1/services/detail_placement_view_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/display_keyword_view_service_client.py create mode 100644 google/ads/google_ads/v1/services/display_keyword_view_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/domain_category_service_client.py create mode 100644 google/ads/google_ads/v1/services/domain_category_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/dynamic_search_ads_search_term_view_service_client.py create mode 100644 google/ads/google_ads/v1/services/dynamic_search_ads_search_term_view_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/enums.py create mode 100644 google/ads/google_ads/v1/services/extension_feed_item_service_client.py create mode 100644 google/ads/google_ads/v1/services/extension_feed_item_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/feed_item_service_client.py create mode 100644 google/ads/google_ads/v1/services/feed_item_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/feed_item_target_service_client.py create mode 100644 google/ads/google_ads/v1/services/feed_item_target_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/feed_mapping_service_client.py create mode 100644 google/ads/google_ads/v1/services/feed_mapping_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/feed_placeholder_view_service_client.py create mode 100644 google/ads/google_ads/v1/services/feed_placeholder_view_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/feed_service_client.py create mode 100644 google/ads/google_ads/v1/services/feed_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/gender_view_service_client.py create mode 100644 google/ads/google_ads/v1/services/gender_view_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/geo_target_constant_service_client.py create mode 100644 google/ads/google_ads/v1/services/geo_target_constant_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/geographic_view_service_client.py create mode 100644 google/ads/google_ads/v1/services/geographic_view_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/google_ads_field_service_client.py create mode 100644 google/ads/google_ads/v1/services/google_ads_field_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/google_ads_service_client.py create mode 100644 google/ads/google_ads/v1/services/google_ads_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/group_placement_view_service_client.py create mode 100644 google/ads/google_ads/v1/services/group_placement_view_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/hotel_group_view_service_client.py create mode 100644 google/ads/google_ads/v1/services/hotel_group_view_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/hotel_performance_view_service_client.py create mode 100644 google/ads/google_ads/v1/services/hotel_performance_view_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/keyword_plan_ad_group_service_client.py create mode 100644 google/ads/google_ads/v1/services/keyword_plan_ad_group_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/keyword_plan_campaign_service_client.py create mode 100644 google/ads/google_ads/v1/services/keyword_plan_campaign_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/keyword_plan_idea_service_client.py create mode 100644 google/ads/google_ads/v1/services/keyword_plan_idea_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/keyword_plan_keyword_service_client.py create mode 100644 google/ads/google_ads/v1/services/keyword_plan_keyword_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/keyword_plan_negative_keyword_service_client.py create mode 100644 google/ads/google_ads/v1/services/keyword_plan_negative_keyword_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/keyword_plan_service_client.py create mode 100644 google/ads/google_ads/v1/services/keyword_plan_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/keyword_view_service_client.py create mode 100644 google/ads/google_ads/v1/services/keyword_view_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/label_service_client.py create mode 100644 google/ads/google_ads/v1/services/label_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/language_constant_service_client.py create mode 100644 google/ads/google_ads/v1/services/language_constant_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/location_view_service_client.py create mode 100644 google/ads/google_ads/v1/services/location_view_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/managed_placement_view_service_client.py create mode 100644 google/ads/google_ads/v1/services/managed_placement_view_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/media_file_service_client.py create mode 100644 google/ads/google_ads/v1/services/media_file_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/merchant_center_link_service_client.py create mode 100644 google/ads/google_ads/v1/services/merchant_center_link_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/mobile_app_category_constant_service_client.py create mode 100644 google/ads/google_ads/v1/services/mobile_app_category_constant_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/mobile_device_constant_service_client.py create mode 100644 google/ads/google_ads/v1/services/mobile_device_constant_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/mutate_job_service_client.py create mode 100644 google/ads/google_ads/v1/services/mutate_job_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/operating_system_version_constant_service_client.py create mode 100644 google/ads/google_ads/v1/services/operating_system_version_constant_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/parental_status_view_service_client.py create mode 100644 google/ads/google_ads/v1/services/parental_status_view_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/payments_account_service_client.py create mode 100644 google/ads/google_ads/v1/services/payments_account_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/product_bidding_category_constant_service_client.py create mode 100644 google/ads/google_ads/v1/services/product_bidding_category_constant_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/product_group_view_service_client.py create mode 100644 google/ads/google_ads/v1/services/product_group_view_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/recommendation_service_client.py create mode 100644 google/ads/google_ads/v1/services/recommendation_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/remarketing_action_service_client.py create mode 100644 google/ads/google_ads/v1/services/remarketing_action_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/search_term_view_service_client.py create mode 100644 google/ads/google_ads/v1/services/search_term_view_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/shared_criterion_service_client.py create mode 100644 google/ads/google_ads/v1/services/shared_criterion_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/shared_set_service_client.py create mode 100644 google/ads/google_ads/v1/services/shared_set_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/shopping_performance_view_service_client.py create mode 100644 google/ads/google_ads/v1/services/shopping_performance_view_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/topic_constant_service_client.py create mode 100644 google/ads/google_ads/v1/services/topic_constant_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/topic_view_service_client.py create mode 100644 google/ads/google_ads/v1/services/topic_view_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/transports/__init__.py create mode 100644 google/ads/google_ads/v1/services/transports/account_budget_proposal_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/account_budget_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/ad_group_ad_label_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/ad_group_ad_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/ad_group_audience_view_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/ad_group_bid_modifier_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/ad_group_criterion_label_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/ad_group_criterion_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/ad_group_extension_setting_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/ad_group_feed_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/ad_group_label_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/ad_group_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/ad_parameter_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/ad_schedule_view_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/age_range_view_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/bidding_strategy_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/billing_setup_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/campaign_audience_view_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/campaign_bid_modifier_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/campaign_budget_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/campaign_criterion_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/campaign_criterion_simulation_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/campaign_extension_setting_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/campaign_feed_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/campaign_label_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/campaign_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/campaign_shared_set_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/carrier_constant_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/change_status_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/click_view_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/conversion_action_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/conversion_upload_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/custom_interest_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/customer_client_link_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/customer_client_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/customer_extension_setting_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/customer_feed_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/customer_label_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/customer_manager_link_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/customer_negative_criterion_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/customer_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/detail_placement_view_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/display_keyword_view_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/domain_category_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/dynamic_search_ads_search_term_view_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/extension_feed_item_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/feed_item_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/feed_item_target_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/feed_mapping_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/feed_placeholder_view_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/feed_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/gender_view_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/geo_target_constant_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/geographic_view_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/google_ads_field_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/google_ads_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/group_placement_view_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/hotel_group_view_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/hotel_performance_view_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/keyword_plan_ad_group_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/keyword_plan_campaign_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/keyword_plan_idea_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/keyword_plan_keyword_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/keyword_plan_negative_keyword_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/keyword_plan_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/keyword_view_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/label_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/language_constant_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/location_view_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/managed_placement_view_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/media_file_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/merchant_center_link_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/mobile_app_category_constant_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/mobile_device_constant_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/mutate_job_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/operating_system_version_constant_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/parental_status_view_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/payments_account_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/product_bidding_category_constant_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/product_group_view_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/recommendation_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/remarketing_action_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/search_term_view_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/shared_criterion_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/shared_set_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/shopping_performance_view_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/topic_constant_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/topic_view_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/user_interest_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/user_list_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/transports/video_service_grpc_transport.py create mode 100644 google/ads/google_ads/v1/services/user_interest_service_client.py create mode 100644 google/ads/google_ads/v1/services/user_interest_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/user_list_service_client.py create mode 100644 google/ads/google_ads/v1/services/user_list_service_client_config.py create mode 100644 google/ads/google_ads/v1/services/video_service_client.py create mode 100644 google/ads/google_ads/v1/services/video_service_client_config.py create mode 100644 google/ads/google_ads/v1/types.py diff --git a/ChangeLog b/ChangeLog index 6a15b2667..669351853 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +* 1.0.0: +- Google Ads v1_0 release. +- Move examples out of v0 directory. +- Add dismiss_recommendations example. +- Add get_hotel_ads_performance example. + * 0.7.0: - Google Ads v0_7 release. - Address inconsistent exception handling in Exception and Logging diff --git a/README.rst b/README.rst index b8ca3af7b..1490f55b0 100644 --- a/README.rst +++ b/README.rst @@ -70,6 +70,24 @@ retrieve the corresponding service client instance: google_ads_service = client.get_service('GoogleAdsService') +API versioning +################################ +With the release of Google Ads API v1_0 it's now possible to specify an API +version when getting services and types. The ``get_service`` and ``get_type`` +client methods accept a second named parameter, ``version`` that refers to a +valid API version. For example, to request an instance of the +``GoogleAdsService`` that uses Google Ads API version ``v0`` use the +following: + +.. code-block:: python + + google_ads_service = client.get_service('GoogleAdsService', version='v0') + +The currently available list of versions is: + +* ``'v0'`` +* ``'v1'`` + Enabling and Configuring logging ################################ The library uses Python's built in logging framework. You can specify your diff --git a/examples/v0/__init__.py b/examples/account_management/__init__.py similarity index 100% rename from examples/v0/__init__.py rename to examples/account_management/__init__.py diff --git a/examples/v0/account_management/create_customer.py b/examples/account_management/create_customer.py similarity index 96% rename from examples/v0/account_management/create_customer.py rename to examples/account_management/create_customer.py index 654ea6f75..b666030ca 100644 --- a/examples/v0/account_management/create_customer.py +++ b/examples/account_management/create_customer.py @@ -30,8 +30,8 @@ def main(client, manager_customer_id): - customer_service = client.get_service('CustomerService') - customer = client.get_type('Customer') + customer_service = client.get_service('CustomerService', version='v1') + customer = client.get_type('Customer', version='v1') 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/v0/account_management/get_accessible_customers.py b/examples/account_management/get_accessible_customers.py similarity index 96% rename from examples/v0/account_management/get_accessible_customers.py rename to examples/account_management/get_accessible_customers.py index a6d5b52ac..6bdbce4e8 100644 --- a/examples/v0/account_management/get_accessible_customers.py +++ b/examples/account_management/get_accessible_customers.py @@ -27,7 +27,7 @@ def main(client): - customer_service = client.get_service('CustomerService') + customer_service = client.get_service('CustomerService', version='v1') try: accessible_customers = customer_service.list_accessible_customers() diff --git a/examples/v0/account_management/get_account_changes.py b/examples/account_management/get_account_changes.py similarity index 93% rename from examples/v0/account_management/get_account_changes.py rename to examples/account_management/get_account_changes.py index 0af50db29..05b87d30f 100644 --- a/examples/v0/account_management/get_account_changes.py +++ b/examples/account_management/get_account_changes.py @@ -58,7 +58,7 @@ def resource_name_for_resource_type(resource_type, row): def main(client, customer_id): - ads_service = client.get_service('GoogleAdsService') + ads_service = client.get_service('GoogleAdsService', version='v1') query = ('SELECT change_status.resource_name, ' 'change_status.last_change_date_time, ' 'change_status.resource_type, ' @@ -75,10 +75,10 @@ def main(client, customer_id): response = ads_service.search(customer_id, query=query, page_size=ADS_PAGE_SIZE) - resource_type_enum = (client.get_type('ChangeStatusResourceTypeEnum') - .ChangeStatusResourceType) - change_status_operation_enum = (client.get_type('ChangeStatusOperationEnum') - .ChangeStatusOperation) + resource_type_enum = (client.get_type( + 'ChangeStatusResourceTypeEnum', version='v1').ChangeStatusResourceType) + change_status_operation_enum = (client.get_type( + 'ChangeStatusOperationEnum', version='v1').ChangeStatusOperation) try: for row in response: diff --git a/examples/v0/account_management/get_account_information.py b/examples/account_management/get_account_information.py similarity index 97% rename from examples/v0/account_management/get_account_information.py rename to examples/account_management/get_account_information.py index 79fb71e54..c6b7e09ee 100644 --- a/examples/v0/account_management/get_account_information.py +++ b/examples/account_management/get_account_information.py @@ -26,7 +26,7 @@ def main(client, customer_id): - customer_service = client.get_service('CustomerService') + customer_service = client.get_service('CustomerService', version='v1') resource_name = customer_service.customer_path(customer_id) diff --git a/examples/v0/account_management/__init__.py b/examples/advanced_operations/__init__.py similarity index 100% rename from examples/v0/account_management/__init__.py rename to examples/advanced_operations/__init__.py diff --git a/examples/v0/advanced_operations/add_ad_group_bid_modifiers.py b/examples/advanced_operations/add_ad_group_bid_modifiers.py similarity index 93% rename from examples/v0/advanced_operations/add_ad_group_bid_modifiers.py rename to examples/advanced_operations/add_ad_group_bid_modifiers.py index a3a2e4a7f..4b426f49a 100644 --- a/examples/v0/advanced_operations/add_ad_group_bid_modifiers.py +++ b/examples/advanced_operations/add_ad_group_bid_modifiers.py @@ -26,8 +26,9 @@ def main(client, customer_id, ad_group_id, bid_modifier_value): - ad_group_service = client.get_service('AdGroupService') - ad_group_bm_service = client.get_service('AdGroupBidModifierService') + ad_group_service = client.get_service('AdGroupService', version='v1') + ad_group_bm_service = client.get_service('AdGroupBidModifierService', + version='v1') # Create ad group bid modifier for mobile devices with the specified ad # group ID and bid modifier value. @@ -43,7 +44,8 @@ def main(client, customer_id, ad_group_id, bid_modifier_value): ad_group_bid_modifier.bid_modifier.value = bid_modifier_value # Sets the device. - ad_group_bid_modifier.device.type = client.get_type('DeviceEnum').MOBILE + ad_group_bid_modifier.device.type = client.get_type('DeviceEnum', + version='v1').MOBILE # Add the ad group bid modifier. try: diff --git a/examples/v0/advanced_operations/add_expanded_text_ad_with_upgraded_urls.py b/examples/advanced_operations/add_expanded_text_ad_with_upgraded_urls.py similarity index 93% rename from examples/v0/advanced_operations/add_expanded_text_ad_with_upgraded_urls.py rename to examples/advanced_operations/add_expanded_text_ad_with_upgraded_urls.py index 79a4072f2..9043a28ff 100644 --- a/examples/v0/advanced_operations/add_expanded_text_ad_with_upgraded_urls.py +++ b/examples/advanced_operations/add_expanded_text_ad_with_upgraded_urls.py @@ -23,15 +23,16 @@ def main(client, customer_id, ad_group_id): - ad_group_ad_service = client.get_service('AdGroupAdService') - ad_group_service = client.get_service('AdGroupService') + ad_group_ad_service = client.get_service('AdGroupAdService', version='v1') + ad_group_service = client.get_service('AdGroupService', version='v1') # Create ad group ad. - ad_group_ad_operation = client.get_type('AdGroupAdOperation') + ad_group_ad_operation = client.get_type('AdGroupAdOperation', version='v1') 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').PAUSED + ad_group_ad.status = client.get_type('AdGroupAdStatusEnum', + version='v1').PAUSED # Set expanded text ad info final_url = ad_group_ad.ad.final_urls.add() diff --git a/examples/v0/advanced_operations/create_and_attach_shared_keyword_sets.py b/examples/advanced_operations/create_and_attach_shared_keyword_sets.py similarity index 87% rename from examples/v0/advanced_operations/create_and_attach_shared_keyword_sets.py rename to examples/advanced_operations/create_and_attach_shared_keyword_sets.py index cf8b3a14a..931a5ef38 100644 --- a/examples/v0/advanced_operations/create_and_attach_shared_keyword_sets.py +++ b/examples/advanced_operations/create_and_attach_shared_keyword_sets.py @@ -27,16 +27,19 @@ def main(client, customer_id, campaign_id): - campaign_service = client.get_service('CampaignService') - shared_set_service = client.get_service('SharedSetService') - shared_criterion_service = client.get_service('SharedCriterionService') - campaign_shared_set_service = client.get_service('CampaignSharedSetService') + campaign_service = client.get_service('CampaignService', version='v1') + shared_set_service = client.get_service('SharedSetService', version='v1') + shared_criterion_service = client.get_service('SharedCriterionService', + version='v1') + campaign_shared_set_service = client.get_service('CampaignSharedSetService', + version='v1') # Create shared negative keyword set. - shared_set_operation = client.get_type('SharedSetOperation') + shared_set_operation = client.get_type('SharedSetOperation', version='v1') shared_set = shared_set_operation.create shared_set.name.value = 'API Negative keyword list - %s' % uuid.uuid4() - shared_set.type = client.get_type('SharedSetTypeEnum').NEGATIVE_KEYWORDS + shared_set.type = client.get_type('SharedSetTypeEnum', + version='v1').NEGATIVE_KEYWORDS try: shared_set_resource_name = shared_set_service.mutate_shared_sets( @@ -58,11 +61,13 @@ def main(client, customer_id, campaign_id): shared_criteria_operations = [] for keyword in keywords: - shared_criterion_operation = client.get_type('SharedCriterionOperation') + shared_criterion_operation = client.get_type('SharedCriterionOperation', + version='v1') shared_criterion = shared_criterion_operation.create keyword_info = shared_criterion.keyword keyword_info.text.value = keyword - keyword_info.match_type = client.get_type('KeywordMatchTypeEnum').BROAD + keyword_info.match_type = client.get_type('KeywordMatchTypeEnum', + version='v1').BROAD shared_criterion.shared_set.value = shared_set_resource_name shared_criteria_operations.append(shared_criterion_operation) @@ -82,7 +87,8 @@ def main(client, customer_id, campaign_id): for shared_criterion in response.results: print('Created shared criterion "%s".' % shared_criterion.resource_name) - campaign_set_operation = client.get_type('CampaignSharedSetOperation') + campaign_set_operation = client.get_type('CampaignSharedSetOperation', + version='v1') campaign_set = campaign_set_operation.create campaign_set.campaign.value = campaign_service.campaign_path( customer_id, campaign_id) diff --git a/examples/v0/advanced_operations/find_and_remove_criteria_from_shared_set.py b/examples/advanced_operations/find_and_remove_criteria_from_shared_set.py similarity index 93% rename from examples/v0/advanced_operations/find_and_remove_criteria_from_shared_set.py rename to examples/advanced_operations/find_and_remove_criteria_from_shared_set.py index 5ff869e67..a34893ae4 100644 --- a/examples/v0/advanced_operations/find_and_remove_criteria_from_shared_set.py +++ b/examples/advanced_operations/find_and_remove_criteria_from_shared_set.py @@ -26,8 +26,9 @@ def main(client, customer_id, page_size, campaign_id): - ga_service = client.get_service('GoogleAdsService') - shared_criterion_service = client.get_service('SharedCriterionService') + ga_service = client.get_service('GoogleAdsService', version='v1') + shared_criterion_service = client.get_service('SharedCriterionService', + version='v1') # First, retrieve all shared sets associated with the campaign. shared_sets_query = ( @@ -77,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').KeywordMatchType) + client.get_type('KeywordMatchTypeEnum', version='v1').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').KEYWORD): + client.get_type('CriterionTypeEnum', version='v1').KEYWORD): keyword = shared_criterion.keyword print('Shared criterion with resource name "%s" for negative ' 'keyword with text "%s" and match type "%s" was found.' @@ -96,7 +97,8 @@ 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') + shared_criterion_operation = client.get_type('SharedCriterionOperation', + version='v1') shared_criterion_operation.remove = criteria_id operations.append(shared_criterion_operation) diff --git a/examples/v0/advanced_operations/get_ad_group_bid_modifiers.py b/examples/advanced_operations/get_ad_group_bid_modifiers.py similarity index 96% rename from examples/v0/advanced_operations/get_ad_group_bid_modifiers.py rename to examples/advanced_operations/get_ad_group_bid_modifiers.py index 33f7f85c5..935db47ef 100644 --- a/examples/v0/advanced_operations/get_ad_group_bid_modifiers.py +++ b/examples/advanced_operations/get_ad_group_bid_modifiers.py @@ -25,7 +25,7 @@ def main(client, customer_id, page_size, ad_group_id=None): - ga_service = client.get_service('GoogleAdsService') + ga_service = client.get_service('GoogleAdsService', version='v1') query = ('SELECT campaign.id, ad_group.id, ' 'ad_group_bid_modifier.criterion_id, ' @@ -38,7 +38,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').Device + device_enum = client.get_type('DeviceEnum', version='v1').Device try: for row in results: diff --git a/examples/v0/advanced_operations/use_portfolio_bidding_strategy.py b/examples/advanced_operations/use_portfolio_bidding_strategy.py similarity index 91% rename from examples/v0/advanced_operations/use_portfolio_bidding_strategy.py rename to examples/advanced_operations/use_portfolio_bidding_strategy.py index 7aab42793..fa582e32a 100644 --- a/examples/v0/advanced_operations/use_portfolio_bidding_strategy.py +++ b/examples/advanced_operations/use_portfolio_bidding_strategy.py @@ -24,12 +24,15 @@ def main(client, customer_id): - campaign_budget_service = client.get_service('CampaignBudgetService') - bidding_strategy_service = client.get_service('BiddingStrategyService') - campaign_service = client.get_service('CampaignService') + campaign_budget_service = client.get_service('CampaignBudgetService', + version='v1') + bidding_strategy_service = client.get_service('BiddingStrategyService', + version='v1') + campaign_service = client.get_service('CampaignService', version='v1') # Create a budget, which can be shared by multiple campaigns. - campaign_budget_operation = client.get_type('CampaignBudgetOperation') + campaign_budget_operation = client.get_type('CampaignBudgetOperation', + version='v1') campaign_budget = campaign_budget_operation.create campaign_budget.name.value = 'Interplanetary Budget %s' % uuid.uuid4() campaign_budget.delivery_method = client.get_type( @@ -57,7 +60,8 @@ def main(client, customer_id): print('Budget "%s" was created.' % campaign_budget_id) # Create a portfolio bidding strategy. - bidding_strategy_operation = client.get_type('BiddingStrategyOperation') + bidding_strategy_operation = client.get_type('BiddingStrategyOperation', + version='v1') bidding_strategy = bidding_strategy_operation.create bidding_strategy.name.value = 'Enhanced CPC %s' % uuid.uuid4() target_spend = bidding_strategy.target_spend @@ -84,7 +88,7 @@ def main(client, customer_id): print('Portfolio bidding strategy "%s" was created.' % bidding_strategy_id) # Create campaign. - campaign_operation = client.get_type('CampaignOperation') + campaign_operation = client.get_type('CampaignOperation', version='v1') campaign = campaign_operation.create campaign.name.value = 'Interplanetary Cruise %s' % uuid.uuid4() campaign.advertising_channel_type = client.get_type( @@ -93,7 +97,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').PAUSED + campaign.status = client.get_type('CampaignStatusEnum', version='v1').PAUSED # Set the bidding strategy and budget. campaign.bidding_strategy.value = bidding_strategy_id diff --git a/examples/v0/advanced_operations/__init__.py b/examples/basic_operations/__init__.py similarity index 100% rename from examples/v0/advanced_operations/__init__.py rename to examples/basic_operations/__init__.py diff --git a/examples/v0/basic_operations/add_ad_groups.py b/examples/basic_operations/add_ad_groups.py similarity index 86% rename from examples/v0/basic_operations/add_ad_groups.py rename to examples/basic_operations/add_ad_groups.py index 13a288766..cc97a2b17 100644 --- a/examples/v0/basic_operations/add_ad_groups.py +++ b/examples/basic_operations/add_ad_groups.py @@ -27,17 +27,18 @@ def main(client, customer_id, campaign_id): - ad_group_service = client.get_service('AdGroupService') - campaign_service = client.get_service('CampaignService') + ad_group_service = client.get_service('AdGroupService', version='v1') + campaign_service = client.get_service('CampaignService', version='v1') # Create ad group. - ad_group_operation = client.get_type('AdGroupOperation') + ad_group_operation = client.get_type('AdGroupOperation', version='v1') ad_group = ad_group_operation.create ad_group.name.value = 'Earth to Mars cruises %s' % uuid.uuid4() - ad_group.status = client.get_type('AdGroupStatusEnum').ENABLED + ad_group.status = client.get_type('AdGroupStatusEnum', version='v1').ENABLED ad_group.campaign.value = campaign_service.campaign_path( customer_id, campaign_id) - ad_group.type = client.get_type('AdGroupTypeEnum').SEARCH_STANDARD + ad_group.type = client.get_type('AdGroupTypeEnum', + version='v1').SEARCH_STANDARD ad_group.cpc_bid_micros.value = 10000000 # Add the ad group. diff --git a/examples/v0/basic_operations/add_campaigns.py b/examples/basic_operations/add_campaigns.py similarity index 88% rename from examples/v0/basic_operations/add_campaigns.py rename to examples/basic_operations/add_campaigns.py index c14b99bc5..43bf1c235 100644 --- a/examples/v0/basic_operations/add_campaigns.py +++ b/examples/basic_operations/add_campaigns.py @@ -31,11 +31,13 @@ def main(client, customer_id): - campaign_budget_service = client.get_service('CampaignBudgetService') - campaign_service = client.get_service('CampaignService') + campaign_budget_service = client.get_service('CampaignBudgetService', + version='v1') + campaign_service = client.get_service('CampaignService', version='v1') # Create a budget, which can be shared by multiple campaigns. - campaign_budget_operation = client.get_type('CampaignBudgetOperation') + campaign_budget_operation = client.get_type('CampaignBudgetOperation', + version='v1') campaign_budget = campaign_budget_operation.create campaign_budget.name.value = 'Interplanetary Budget %s' % uuid.uuid4() campaign_budget.delivery_method = client.get_type( @@ -58,16 +60,16 @@ def main(client, customer_id): sys.exit(1) # Create campaign. - campaign_operation = client.get_type('CampaignOperation') + campaign_operation = client.get_type('CampaignOperation', version='v1') campaign = campaign_operation.create campaign.name.value = 'Interplanetary Cruise %s' % uuid.uuid4() campaign.advertising_channel_type = client.get_type( 'AdvertisingChannelTypeEnum').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').PAUSED + # 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='v1').PAUSED # Set the bidding strategy and budget. campaign.manual_cpc.enhanced_cpc_enabled.value = True @@ -82,7 +84,8 @@ def main(client, customer_id): # Optional: Set the start date. start_time = datetime.date.today() + datetime.timedelta(days=1) - campaign.start_date.value = datetime.date.strftime(start_time, _DATE_FORMAT) + campaign.start_date.value = datetime.date.strftime(start_time, + _DATE_FORMAT) # Optional: Set the end date. end_time = start_time + datetime.timedelta(weeks=4) diff --git a/examples/v0/basic_operations/add_expanded_text_ads.py b/examples/basic_operations/add_expanded_text_ads.py similarity index 91% rename from examples/v0/basic_operations/add_expanded_text_ads.py rename to examples/basic_operations/add_expanded_text_ads.py index 80edc4b67..d1027cf13 100644 --- a/examples/v0/basic_operations/add_expanded_text_ads.py +++ b/examples/basic_operations/add_expanded_text_ads.py @@ -27,15 +27,16 @@ def main(client, customer_id, ad_group_id): - ad_group_ad_service = client.get_service('AdGroupAdService') - ad_group_service = client.get_service('AdGroupService') + ad_group_ad_service = client.get_service('AdGroupAdService', version='v1') + ad_group_service = client.get_service('AdGroupService', version='v1') # Create ad group ad. - ad_group_ad_operation = client.get_type('AdGroupAdOperation') + ad_group_ad_operation = client.get_type('AdGroupAdOperation', version='v1') 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').PAUSED + ad_group_ad.status = client.get_type('AdGroupAdStatusEnum', + version='v1').PAUSED # Set expanded text ad info final_url = ad_group_ad.ad.final_urls.add() diff --git a/examples/v0/basic_operations/add_keywords.py b/examples/basic_operations/add_keywords.py similarity index 94% rename from examples/v0/basic_operations/add_keywords.py rename to examples/basic_operations/add_keywords.py index 7946cc11b..0a66dc5cb 100644 --- a/examples/v0/basic_operations/add_keywords.py +++ b/examples/basic_operations/add_keywords.py @@ -23,11 +23,13 @@ def main(client, customer_id, ad_group_id, keyword): - ad_group_service = client.get_service('AdGroupService') - ad_group_criterion_service = client.get_service('AdGroupCriterionService') + ad_group_service = client.get_service('AdGroupService', version='v1') + ad_group_criterion_service = client.get_service('AdGroupCriterionService', + version='v1') # Create keyword. - ad_group_criterion_operation = client.get_type('AdGroupCriterionOperation') + ad_group_criterion_operation = client.get_type('AdGroupCriterionOperation', + version='v1') 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) diff --git a/examples/v0/basic_operations/get_ad_groups.py b/examples/basic_operations/get_ad_groups.py similarity index 97% rename from examples/v0/basic_operations/get_ad_groups.py rename to examples/basic_operations/get_ad_groups.py index 0015bd9c3..212e69c7f 100644 --- a/examples/v0/basic_operations/get_ad_groups.py +++ b/examples/basic_operations/get_ad_groups.py @@ -25,7 +25,7 @@ def main(client, customer_id, page_size, campaign_id=None): - ga_service = client.get_service('GoogleAdsService') + ga_service = client.get_service('GoogleAdsService', version='v1') query = 'SELECT campaign.id, ad_group.id, ad_group.name FROM ad_group' diff --git a/examples/v0/basic_operations/get_artifact_metadata.py b/examples/basic_operations/get_artifact_metadata.py similarity index 98% rename from examples/v0/basic_operations/get_artifact_metadata.py rename to examples/basic_operations/get_artifact_metadata.py index b898fa555..c41abd930 100644 --- a/examples/v0/basic_operations/get_artifact_metadata.py +++ b/examples/basic_operations/get_artifact_metadata.py @@ -44,7 +44,7 @@ def _is_or_is_not(bool_value): def main(client, artifact_name, page_size): - gaf_service = client.get_service('GoogleAdsFieldService') + gaf_service = client.get_service('GoogleAdsFieldService', version='v1') # Searches for an artifact with the specified name. query = ('SELECT name, category, selectable, filterable, sortable, ' diff --git a/examples/v0/basic_operations/get_campaigns.py b/examples/basic_operations/get_campaigns.py similarity index 94% rename from examples/v0/basic_operations/get_campaigns.py rename to examples/basic_operations/get_campaigns.py index 4c5c24906..8a6859637 100644 --- a/examples/v0/basic_operations/get_campaigns.py +++ b/examples/basic_operations/get_campaigns.py @@ -29,12 +29,12 @@ def main(client, customer_id, page_size): - ga_service = client.get_service('GoogleAdsService') + ga_service = client.get_service('GoogleAdsService', version='v1') query = ('SELECT campaign.id, campaign.name FROM campaign ' 'ORDER BY campaign.id') - results = ga_service.search(customer_id, query=query,page_size=page_size) + results = ga_service.search(customer_id, query=query, page_size=page_size) try: for row in results: diff --git a/examples/v0/basic_operations/get_expanded_text_ads.py b/examples/basic_operations/get_expanded_text_ads.py similarity index 97% rename from examples/v0/basic_operations/get_expanded_text_ads.py rename to examples/basic_operations/get_expanded_text_ads.py index 5b4a46144..f09e3b410 100644 --- a/examples/v0/basic_operations/get_expanded_text_ads.py +++ b/examples/basic_operations/get_expanded_text_ads.py @@ -26,7 +26,7 @@ def main(client, customer_id, page_size, ad_group_id=None): - ga_service = client.get_service('GoogleAdsService') + ga_service = client.get_service('GoogleAdsService', version='v1') query = ('SELECT ad_group.id, ad_group_ad.ad.id, ' 'ad_group_ad.ad.expanded_text_ad.headline_part1, ' diff --git a/examples/v0/basic_operations/get_keywords.py b/examples/basic_operations/get_keywords.py similarity index 97% rename from examples/v0/basic_operations/get_keywords.py rename to examples/basic_operations/get_keywords.py index 2c76b9fe6..8f0f49a1e 100644 --- a/examples/v0/basic_operations/get_keywords.py +++ b/examples/basic_operations/get_keywords.py @@ -26,7 +26,7 @@ def main(client, customer_id, page_size, ad_group_id=None): - ga_service = client.get_service('GoogleAdsService') + ga_service = client.get_service('GoogleAdsService', version='v1') query = ('SELECT ad_group.id, ad_group_criterion.type, ' 'ad_group_criterion.criterion_id, ' diff --git a/examples/basic_operations/handle_partial_failure.py b/examples/basic_operations/handle_partial_failure.py new file mode 100644 index 000000000..b3d15131e --- /dev/null +++ b/examples/basic_operations/handle_partial_failure.py @@ -0,0 +1,160 @@ +# 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. +"""This shows how to handle responses that may include partial_failure errors. +""" + +from __future__ import absolute_import + +import argparse +import six +import sys +import uuid + +from google.ads.google_ads.client import GoogleAdsClient +from google.ads.google_ads.errors import GoogleAdsException + + +def main(client, customer_id, campaign_id): + ad_group_service = client.get_service('AdGroupService', version='v1') + campaign_service = client.get_service('CampaignService', version='v1') + resource_name = campaign_service.campaign_path(customer_id, campaign_id) + invalid_resource_name = campaign_service.campaign_path(customer_id, 0) + ad_group_operations = [] + + # This AdGroup should be created successfully - assuming the campaign in + # the params exists. + ad_group_op1 = client.get_type('AdGroupOperation', version='v1') + 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='v1') + 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='v1') + 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) + + try: + # Issue a mutate request, setting partial_failure=True. + ad_group_response = ad_group_service.mutate_ad_groups( + customer_id, ad_group_operations, partial_failure=True) + except GoogleAdsException as ex: + print('Request with ID "%s" failed with status "%s" and includes the ' + 'following errors:' % (ex.request_id, ex.error.code().name)) + for error in ex.failure.errors: + print('\tError with message "%s".' % 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) + sys.exit(1) + else: + # Check for existence of any partial failures in the response. + if ad_group_response.partial_failure_error: + print('Partial failures occurred. Details will be shown below.\n') + partial_failures = get_partial_failure_messages( + client, ad_group_response) + + for error in partial_failures: + # Construct and print a string that details which element in + # the above ad_group_operations list failed (by index number) + # as well as the error message and error code. + print('A partial failure at index %d occured.\n' + 'Error message: %s\nError code: %s' % ( + error.location.field_path_elements[0].index.value, + error.message, error.error_code)) + else: + print('All operations completed successfully. No partial failure ' + 'to show.') + + # In the list of results, operations from the ad_group_operation list + # that failed will be represented as empty messages. This loop detects + # such empty messages and ignores them, while printing information about + # successful operations. + for message in ad_group_response.results: + # Empty messages will have a byte size of zero. + if message.ByteSize() == 0: + continue + + print('Created ad group with resource_name: %s.' % ( + message.resource_name)) + + +def get_partial_failure_messages(client, response): + """Get a list of all partial failure error objects for a given response. + + Shows how to retrieve partial_failure errors from a response message (in + the case of this example the message will be of type MutateAdGroupsResponse) + and how to unpack those errors to GoogleAdsError instances. As an example, + a GoogleAdsError object from this example will be structured similar to: + + error_code { + range_error: TOO_LOW + } + message: "Too low." + trigger { + string_value: "" + } + location { + field_path_elements { + field_name: "operations" + index { + value: 1 + } + } + field_path_elements { + field_name: "create" + } + field_path_elements { + field_name: "campaign" + } + } + + Args: + client: an initialized GoogleAdsClient. + response: a MutateAdGroupsResponse instance. + Returns: + A list of GoogleAdsError instances each relating to an individual + failure from the given list of partial failures. + """ + # Retrieve the serialized list of errors off of the response message. + error_detail = response.partial_failure_error.details[0].value + # Retrieve the GoogleAdsFailure class from the client + google_ads_failure = client.get_type('GoogleAdsFailure', version='v1') + # Parse the string into a GoogleAdsFailure message instance. + err_object = google_ads_failure.FromString(error_detail) + return err_object.errors + + +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 an ad group for specified customer and campaign id.') + # The following argument(s) should be provided to run the example. + parser.add_argument('-c', '--customer_id', type=six.text_type, + required=True, help='The Google Ads customer ID.') + parser.add_argument('-i', '--campaign_id', type=six.text_type, + required=True, help='The campaign ID.') + args = parser.parse_args() + + main(google_ads_client, args.customer_id, args.campaign_id) diff --git a/examples/v0/basic_operations/pause_ad.py b/examples/basic_operations/pause_ad.py similarity index 92% rename from examples/v0/basic_operations/pause_ad.py rename to examples/basic_operations/pause_ad.py index 0a430daa9..af517d0f9 100644 --- a/examples/v0/basic_operations/pause_ad.py +++ b/examples/basic_operations/pause_ad.py @@ -24,14 +24,15 @@ def main(client, customer_id, ad_group_id, ad_id): - ad_group_ad_service = client.get_service('AdGroupAdService') + ad_group_ad_service = client.get_service('AdGroupAdService', version='v1') - ad_group_ad_operation = client.get_type('AdGroupAdOperation') + ad_group_ad_operation = client.get_type('AdGroupAdOperation', version='v1') ad_group_ad = ad_group_ad_operation.update ad_group_ad.resource_name = ad_group_ad_service.ad_group_ad_path( customer_id, '%s_%s' % (ad_group_id, ad_id)) - ad_group_ad.status = client.get_type('AdGroupStatusEnum').PAUSED + ad_group_ad.status = client.get_type('AdGroupStatusEnum', + version='v1').PAUSED fm = protobuf_helpers.field_mask(None, ad_group_ad) ad_group_ad_operation.update_mask.CopyFrom(fm) diff --git a/examples/v0/basic_operations/remove_ad.py b/examples/basic_operations/remove_ad.py similarity index 96% rename from examples/v0/basic_operations/remove_ad.py rename to examples/basic_operations/remove_ad.py index 3dbe743e5..52b7a3d22 100644 --- a/examples/v0/basic_operations/remove_ad.py +++ b/examples/basic_operations/remove_ad.py @@ -23,8 +23,8 @@ def main(client, customer_id, ad_group_id, ad_id): - ad_group_ad_service = client.get_service('AdGroupAdService') - ad_group_ad_operation = client.get_type('AdGroupAdOperation') + ad_group_ad_service = client.get_service('AdGroupAdService', version='v1') + ad_group_ad_operation = client.get_type('AdGroupAdOperation', version='v1') resource_name = ad_group_ad_service.ad_group_ad_path( customer_id, '%s_%s' % (ad_group_id, ad_id)) diff --git a/examples/v0/basic_operations/remove_ad_group.py b/examples/basic_operations/remove_ad_group.py similarity index 94% rename from examples/v0/basic_operations/remove_ad_group.py rename to examples/basic_operations/remove_ad_group.py index 5f60d56ae..e32094ac3 100644 --- a/examples/v0/basic_operations/remove_ad_group.py +++ b/examples/basic_operations/remove_ad_group.py @@ -23,8 +23,8 @@ def main(client, customer_id, ad_group_id): - ad_group_service = client.get_service('AdGroupService') - ad_group_operation = client.get_type('AdGroupOperation') + ad_group_service = client.get_service('AdGroupService', version='v1') + ad_group_operation = client.get_type('AdGroupOperation', version='v1') resource_name = ad_group_service.ad_group_path(customer_id, ad_group_id) ad_group_operation.remove = resource_name diff --git a/examples/v0/basic_operations/remove_campaign.py b/examples/basic_operations/remove_campaign.py similarity index 94% rename from examples/v0/basic_operations/remove_campaign.py rename to examples/basic_operations/remove_campaign.py index ecf5bca89..ab35607a3 100644 --- a/examples/v0/basic_operations/remove_campaign.py +++ b/examples/basic_operations/remove_campaign.py @@ -23,8 +23,8 @@ def main(client, customer_id, campaign_id): - campaign_service = client.get_service('CampaignService') - campaign_operation = client.get_type('CampaignOperation') + campaign_service = client.get_service('CampaignService', version='v1') + campaign_operation = client.get_type('CampaignOperation', version='v1') resource_name = campaign_service.campaign_path(customer_id, campaign_id) campaign_operation.remove = resource_name diff --git a/examples/v0/basic_operations/remove_keyword.py b/examples/basic_operations/remove_keyword.py similarity index 94% rename from examples/v0/basic_operations/remove_keyword.py rename to examples/basic_operations/remove_keyword.py index 317f85e84..f8aa4e291 100644 --- a/examples/v0/basic_operations/remove_keyword.py +++ b/examples/basic_operations/remove_keyword.py @@ -23,8 +23,8 @@ def main(client, customer_id, ad_group_id, criteria_id): - agc_service = client.get_service('AdGroupCriterionService') - agc_operation = client.get_type('AdGroupCriterionOperation') + agc_service = client.get_service('AdGroupCriterionService', version='v1') + agc_operation = client.get_type('AdGroupCriterionOperation', version='v1') resource_name = agc_service.ad_group_criteria_path( customer_id, '%s_%s' % (ad_group_id, criteria_id)) diff --git a/examples/v0/basic_operations/update_ad_group.py b/examples/basic_operations/update_ad_group.py similarity index 92% rename from examples/v0/basic_operations/update_ad_group.py rename to examples/basic_operations/update_ad_group.py index b7475bfd9..ccadc76d9 100644 --- a/examples/v0/basic_operations/update_ad_group.py +++ b/examples/basic_operations/update_ad_group.py @@ -27,14 +27,14 @@ def main(client, customer_id, ad_group_id, bid_micro_amount): - ad_group_service = client.get_service('AdGroupService') + ad_group_service = client.get_service('AdGroupService', version='v1') # Create ad group operation. - ad_group_operation = client.get_type('AdGroupOperation') + ad_group_operation = client.get_type('AdGroupOperation', version='v1') 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').PAUSED + ad_group.status = client.get_type('AdGroupStatusEnum', version='v1').PAUSED ad_group.cpc_bid_micros.value = bid_micro_amount fm = protobuf_helpers.field_mask(None, ad_group) ad_group_operation.update_mask.CopyFrom(fm) diff --git a/examples/v0/basic_operations/update_campaign.py b/examples/basic_operations/update_campaign.py similarity index 92% rename from examples/v0/basic_operations/update_campaign.py rename to examples/basic_operations/update_campaign.py index a647be830..2875ca0f9 100644 --- a/examples/v0/basic_operations/update_campaign.py +++ b/examples/basic_operations/update_campaign.py @@ -28,13 +28,13 @@ def main(client, customer_id, campaign_id): - campaign_service = client.get_service('CampaignService') + campaign_service = client.get_service('CampaignService', version='v1') # Create campaign operation. - campaign_operation = client.get_type('CampaignOperation') + campaign_operation = client.get_type('CampaignOperation', version='v1') campaign = campaign_operation.update campaign.resource_name = campaign_service.campaign_path( customer_id, campaign_id) - campaign.status = client.get_type('CampaignStatusEnum').PAUSED + campaign.status = client.get_type('CampaignStatusEnum', version='v1').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/v0/basic_operations/update_keyword.py b/examples/basic_operations/update_keyword.py similarity index 93% rename from examples/v0/basic_operations/update_keyword.py rename to examples/basic_operations/update_keyword.py index ec6a45006..bc7471429 100644 --- a/examples/v0/basic_operations/update_keyword.py +++ b/examples/basic_operations/update_keyword.py @@ -24,14 +24,16 @@ def main(client, customer_id, ad_group_id, criterion_id): - agc_service = client.get_service('AdGroupCriterionService') + agc_service = client.get_service('AdGroupCriterionService', version='v1') - ad_group_criterion_operation = client.get_type('AdGroupCriterionOperation') + ad_group_criterion_operation = client.get_type('AdGroupCriterionOperation', + version='v1') ad_group_criterion = ad_group_criterion_operation.update ad_group_criterion.resource_name = agc_service.ad_group_criteria_path( customer_id, '%s_%s' % (ad_group_id, criterion_id)) - ad_group_criterion.status = (client.get_type('AdGroupCriterionStatusEnum') + ad_group_criterion.status = (client.get_type('AdGroupCriterionStatusEnum', + version='v1') .ENABLED) final_url = ad_group_criterion.final_urls.add() final_url.value = 'https://www.example.com' diff --git a/examples/v0/basic_operations/__init__.py b/examples/billing/__init__.py similarity index 100% rename from examples/v0/basic_operations/__init__.py rename to examples/billing/__init__.py diff --git a/examples/v0/billing/add_account_budget_proposal.py b/examples/billing/add_account_budget_proposal.py similarity index 94% rename from examples/v0/billing/add_account_budget_proposal.py rename to examples/billing/add_account_budget_proposal.py index 14db8f8fa..caf76b7f0 100644 --- a/examples/v0/billing/add_account_budget_proposal.py +++ b/examples/billing/add_account_budget_proposal.py @@ -29,7 +29,8 @@ def main(client, customer_id, billing_setup_id): account_budget_proposal_service = client.get_service( 'AccountBudgetProposalService') - billing_setup_service = client.get_service('BillingSetupService') + billing_setup_service = client.get_service('BillingSetupService', + version='v1') account_budget_proposal_operation = client.get_type( 'AccountBudgetProposalOperation') @@ -42,14 +43,16 @@ def main(client, customer_id, billing_setup_id): proposal.proposed_name.value = 'Account Budget Proposal (example)' # Specify the account budget starts immediately - proposal.proposed_start_time_type = client.get_type('TimeTypeEnum').NOW + proposal.proposed_start_time_type = client.get_type('TimeTypeEnum', + version='v1').NOW # Alternatively you can specify a specific start time. Refer to the # AccountBudgetProposal resource documentation for allowed formats. # # proposal.proposed_start_date_time = '2020-01-02 03:04:05' # Specify that the budget runs forever - proposal.proposed_end_time_type = client.get_type('TimeTypeEnum').FOREVER + proposal.proposed_end_time_type = client.get_type('TimeTypeEnum', + version='v1').FOREVER # Alternatively you can specify a specific end time. Allowed formats are as # above. # diff --git a/examples/v0/billing/get_account_budget_proposals.py b/examples/billing/get_account_budget_proposals.py similarity index 98% rename from examples/v0/billing/get_account_budget_proposals.py rename to examples/billing/get_account_budget_proposals.py index d5729f089..72eb42a12 100644 --- a/examples/v0/billing/get_account_budget_proposals.py +++ b/examples/billing/get_account_budget_proposals.py @@ -30,7 +30,7 @@ def main(client, customer_id, page_size): - ga_service = client.get_service('GoogleAdsService') + ga_service = client.get_service('GoogleAdsService', version='v1') query = ('SELECT account_budget_proposal.id, ' 'account_budget_proposal.account_budget,' diff --git a/examples/v0/billing/get_account_budgets.py b/examples/billing/get_account_budgets.py similarity index 98% rename from examples/v0/billing/get_account_budgets.py rename to examples/billing/get_account_budgets.py index 4a36b6938..5a783406d 100644 --- a/examples/v0/billing/get_account_budgets.py +++ b/examples/billing/get_account_budgets.py @@ -27,7 +27,7 @@ def main(client, customer_id, page_size): - ga_service = client.get_service('GoogleAdsService') + ga_service = client.get_service('GoogleAdsService', version='v1') query = ('SELECT account_budget.status, ' 'account_budget.billing_setup, ' diff --git a/examples/v0/billing/get_billing_setups.py b/examples/billing/get_billing_setups.py similarity index 95% rename from examples/v0/billing/get_billing_setups.py rename to examples/billing/get_billing_setups.py index bb55ef288..91ae97e04 100644 --- a/examples/v0/billing/get_billing_setups.py +++ b/examples/billing/get_billing_setups.py @@ -26,7 +26,7 @@ def main(client, customer_id, page_size): - ga_service = client.get_service('GoogleAdsService') + ga_service = client.get_service('GoogleAdsService', version='v1') query = ( 'SELECT billing_setup.id, billing_setup.status, ' @@ -43,7 +43,8 @@ def main(client, customer_id, page_size): try: # Use the enum type to determine the enum name from the value. billing_setup_status_enum = ( - client.get_type('BillingSetupStatusEnum').BillingSetupStatus) + client.get_type('BillingSetupStatusEnum', version='v1') + .BillingSetupStatus) print('Found the following billing setup results:') for row in results: diff --git a/examples/v0/billing/remove_billing_setup.py b/examples/billing/remove_billing_setup.py similarity index 95% rename from examples/v0/billing/remove_billing_setup.py rename to examples/billing/remove_billing_setup.py index a9275fbe1..8e72b29e6 100644 --- a/examples/v0/billing/remove_billing_setup.py +++ b/examples/billing/remove_billing_setup.py @@ -26,10 +26,12 @@ def main(client, customer_id, billing_setup_id): - billing_setup_service = client.get_service('BillingSetupService') + billing_setup_service = client.get_service('BillingSetupService', + version='v1') # Create billing setup operation. - billing_setup_operation = client.get_type('BillingSetupOperation') + billing_setup_operation = client.get_type('BillingSetupOperation', + version='v1') billing_setup_operation.remove = billing_setup_service.billing_setup_path( customer_id, billing_setup_id) diff --git a/examples/v0/billing/__init__.py b/examples/campaign_management/__init__.py similarity index 100% rename from examples/v0/billing/__init__.py rename to examples/campaign_management/__init__.py diff --git a/examples/v0/campaign_management/add_campaign_bid_modifier.py b/examples/campaign_management/add_campaign_bid_modifier.py similarity index 94% rename from examples/v0/campaign_management/add_campaign_bid_modifier.py rename to examples/campaign_management/add_campaign_bid_modifier.py index 888f126d7..791b5f4a0 100644 --- a/examples/v0/campaign_management/add_campaign_bid_modifier.py +++ b/examples/campaign_management/add_campaign_bid_modifier.py @@ -24,8 +24,9 @@ def main(client, customer_id, campaign_id, bid_modifier_value): - campaign_service = client.get_service('CampaignService') - campaign_bm_service = client.get_service('CampaignBidModifierService') + campaign_service = client.get_service('CampaignService', version='v1') + campaign_bm_service = client.get_service('CampaignBidModifierService', + version='v1') # Create campaign bid modifier for call interactions with the specified # campaign ID and bid modifier value. @@ -42,7 +43,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').CALLS) + client.get_type('InteractionTypeEnum', version='v1').CALLS) # Add the campaign bid modifier. try: diff --git a/examples/v0/campaign_management/get_all_disapproved_ads.py b/examples/campaign_management/get_all_disapproved_ads.py similarity index 96% rename from examples/v0/campaign_management/get_all_disapproved_ads.py rename to examples/campaign_management/get_all_disapproved_ads.py index 51dfa1d63..61a952327 100644 --- a/examples/v0/campaign_management/get_all_disapproved_ads.py +++ b/examples/campaign_management/get_all_disapproved_ads.py @@ -25,7 +25,7 @@ def main(client, customer_id, campaign_id, page_size): - ga_service = client.get_service('GoogleAdsService') + ga_service = client.get_service('GoogleAdsService', version='v1') query = ('SELECT ad_group_ad.ad.id, ad_group_ad.ad.type, ' 'ad_group_ad.policy_summary FROM ad_group_ad ' @@ -35,7 +35,7 @@ def main(client, customer_id, campaign_id, page_size): try: disapproved_ads_count = 0 - ad_type_enum = client.get_type('AdTypeEnum').AdType + ad_type_enum = client.get_type('AdTypeEnum', version='v1').AdType policy_topic_entry_type_enum = client.get_type( 'PolicyTopicEntryTypeEnum').PolicyTopicEntryType diff --git a/examples/v0/campaign_management/__init__.py b/examples/hotel_ads/__init__.py similarity index 100% rename from examples/v0/campaign_management/__init__.py rename to examples/hotel_ads/__init__.py diff --git a/examples/v0/hotel_ads/add_hotel_ad.py b/examples/hotel_ads/add_hotel_ad.py similarity index 89% rename from examples/v0/hotel_ads/add_hotel_ad.py rename to examples/hotel_ads/add_hotel_ad.py index 15c24debb..bac2275b2 100644 --- a/examples/v0/hotel_ads/add_hotel_ad.py +++ b/examples/hotel_ads/add_hotel_ad.py @@ -48,10 +48,12 @@ def main(client, customer_id, hotel_center_account_id, def add_budget(client, customer_id): - campaign_budget_service = client.get_service('CampaignBudgetService') + campaign_budget_service = client.get_service('CampaignBudgetService', + version='v1') # Create a budget, which can be shared by multiple campaigns. - campaign_budget_operation = client.get_type('CampaignBudgetOperation') + campaign_budget_operation = client.get_type('CampaignBudgetOperation', + version='v1') campaign_budget = campaign_budget_operation.create campaign_budget.name.value = 'Interplanetary Budget %s' % uuid.uuid4() campaign_budget.delivery_method = client.get_type( @@ -81,14 +83,16 @@ 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') + ad_group_ad_service = client.get_service('AdGroupAdService', version='v1') # Creates a new ad group ad and sets the hotel ad to it. - ad_group_ad_operation = client.get_type('AdGroupAdOperation') + ad_group_ad_operation = client.get_type('AdGroupAdOperation', version='v1') 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').PAUSED - ad_group_ad.ad.hotel_ad.CopyFrom(client.get_type('HotelAdInfo')) + ad_group_ad.status = client.get_type('AdGroupAdStatusEnum', + version='v1').PAUSED + ad_group_ad.ad.hotel_ad.CopyFrom(client.get_type('HotelAdInfo', + version='v1')) # Add the ad group ad. try: @@ -112,16 +116,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') + ad_group_service = client.get_service('AdGroupService', version='v1') # Create ad group. - ad_group_operation = client.get_type('AdGroupOperation') + ad_group_operation = client.get_type('AdGroupOperation', version='v1') ad_group = ad_group_operation.create ad_group.name.value = 'Earth to Mars cruise %s' % uuid.uuid4() - ad_group.status = client.get_type('AdGroupStatusEnum').ENABLED + ad_group.status = client.get_type('AdGroupStatusEnum', version='v1').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').HOTEL_ADS + ad_group.type = client.get_type('AdGroupTypeEnum', version='v1').HOTEL_ADS ad_group.cpc_bid_micros.value = 10000000 # Add the ad group. @@ -148,10 +152,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') + campaign_service = client.get_service('CampaignService', version='v1') # Create campaign. - campaign_operation = client.get_type('CampaignOperation') + campaign_operation = client.get_type('CampaignOperation', version='v1') campaign = campaign_operation.create campaign.name.value = 'Interplanetary Cruise Campaign %s' % uuid.uuid4() @@ -164,7 +168,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').PAUSED + campaign.status = client.get_type('CampaignStatusEnum', version='v1').PAUSED # Set the bidding strategy to PercentCpc. Only Manual CPC and Percent CPC # can be used for hotel campaigns. diff --git a/examples/v0/hotel_ads/add_hotel_ad_group_bid_modifiers.py b/examples/hotel_ads/add_hotel_ad_group_bid_modifiers.py similarity index 91% rename from examples/v0/hotel_ads/add_hotel_ad_group_bid_modifiers.py rename to examples/hotel_ads/add_hotel_ad_group_bid_modifiers.py index 2ce20f3a7..d6ba6173a 100644 --- a/examples/v0/hotel_ads/add_hotel_ad_group_bid_modifiers.py +++ b/examples/hotel_ads/add_hotel_ad_group_bid_modifiers.py @@ -26,21 +26,24 @@ def main(client, customer_id, ad_group_id): - ad_group_service = client.get_service('AdGroupService') - ag_bm_service = client.get_service('AdGroupBidModifierService') + ad_group_service = client.get_service('AdGroupService', version='v1') + ag_bm_service = client.get_service('AdGroupBidModifierService', + version='v1') # Create ad group bid modifier based on hotel check-in day. - check_in_ag_bm_operation = client.get_type('AdGroupBidModifierOperation') + check_in_ag_bm_operation = client.get_type('AdGroupBidModifierOperation', + version='v1') 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').MONDAY) + client.get_type('DayOfWeekEnum', version='v1').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%. check_in_ag_bid_modifier.bid_modifier.value = 1.5 # Create ad group bid modifier based on hotel length of stay info. - los_ag_bm_operation = client.get_type('AdGroupBidModifierOperation') + los_ag_bm_operation = client.get_type('AdGroupBidModifierOperation', + version='v1') 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/v0/hotel_ads/__init__.py b/examples/recommendations/__init__.py similarity index 100% rename from examples/v0/hotel_ads/__init__.py rename to examples/recommendations/__init__.py diff --git a/examples/v0/recommendations/apply_recommendation.py b/examples/recommendations/apply_recommendation.py similarity index 97% rename from examples/v0/recommendations/apply_recommendation.py rename to examples/recommendations/apply_recommendation.py index 8c46c0ea2..c3628a98b 100644 --- a/examples/v0/recommendations/apply_recommendation.py +++ b/examples/recommendations/apply_recommendation.py @@ -26,7 +26,8 @@ def main(client, customer_id, recommendation_id): - recommendation_service = client.get_service('RecommendationService') + recommendation_service = client.get_service('RecommendationService', + version='v1') apply_recommendation_operation = client.get_type( 'ApplyRecommendationOperation') diff --git a/examples/v0/recommendations/dismiss_recommendation.py b/examples/recommendations/dismiss_recommendation.py similarity index 100% rename from examples/v0/recommendations/dismiss_recommendation.py rename to examples/recommendations/dismiss_recommendation.py diff --git a/examples/v0/recommendations/get_text_ad_recommendations.py b/examples/recommendations/get_text_ad_recommendations.py similarity index 97% rename from examples/v0/recommendations/get_text_ad_recommendations.py rename to examples/recommendations/get_text_ad_recommendations.py index b796c7444..4304655a5 100644 --- a/examples/v0/recommendations/get_text_ad_recommendations.py +++ b/examples/recommendations/get_text_ad_recommendations.py @@ -29,7 +29,7 @@ def main(client, customer_id, page_size): - ga_service = client.get_service('GoogleAdsService') + ga_service = client.get_service('GoogleAdsService', version='v1') query = ('SELECT recommendation.type, recommendation.campaign, ' 'recommendation.text_ad_recommendation FROM recommendation ' diff --git a/examples/v0/recommendations/__init__.py b/examples/remarketing/__init__.py similarity index 100% rename from examples/v0/recommendations/__init__.py rename to examples/remarketing/__init__.py diff --git a/examples/v0/remarketing/add_conversion_action.py b/examples/remarketing/add_conversion_action.py similarity index 95% rename from examples/v0/remarketing/add_conversion_action.py rename to examples/remarketing/add_conversion_action.py index 3a58fe65b..c927f5de9 100644 --- a/examples/v0/remarketing/add_conversion_action.py +++ b/examples/remarketing/add_conversion_action.py @@ -24,10 +24,12 @@ def main(client, customer_id): - conversion_action_service = client.get_service('ConversionActionService') + conversion_action_service = client.get_service('ConversionActionService', + version='v1') # Create the operation. - conversion_action_operation = client.get_type('ConversionActionOperation') + conversion_action_operation = client.get_type('ConversionActionOperation', + version='v1') # Create conversion action. conversion_action = conversion_action_operation.create diff --git a/examples/v0/remarketing/__init__.py b/examples/reporting/__init__.py similarity index 100% rename from examples/v0/remarketing/__init__.py rename to examples/reporting/__init__.py diff --git a/examples/v0/reporting/get_hotel_ads_performance.py b/examples/reporting/get_hotel_ads_performance.py similarity index 98% rename from examples/v0/reporting/get_hotel_ads_performance.py rename to examples/reporting/get_hotel_ads_performance.py index 6acba5c41..d5788fbd9 100644 --- a/examples/v0/reporting/get_hotel_ads_performance.py +++ b/examples/reporting/get_hotel_ads_performance.py @@ -28,7 +28,7 @@ def main(client, customer_id, page_size): - ga_service = client.get_service('GoogleAdsService') + ga_service = client.get_service('GoogleAdsService', version='v1') query = ('SELECT campaign.id, campaign.advertising_channel_type, ' 'ad_group.id, ad_group.status, metrics.impressions, ' diff --git a/examples/v0/reporting/get_keyword_stats.py b/examples/reporting/get_keyword_stats.py similarity index 98% rename from examples/v0/reporting/get_keyword_stats.py rename to examples/reporting/get_keyword_stats.py index 7afe2a084..a6a120573 100644 --- a/examples/v0/reporting/get_keyword_stats.py +++ b/examples/reporting/get_keyword_stats.py @@ -29,7 +29,7 @@ def main(client, customer_id, page_size): - ga_service = client.get_service('GoogleAdsService') + ga_service = client.get_service('GoogleAdsService', version='v1') query = ('SELECT campaign.id, campaign.name, ad_group.id, ad_group.name, ' 'ad_group_criterion.criterion_id, ' diff --git a/examples/v0/shopping/add_shopping_product_ad.py b/examples/shopping/add_shopping_product_ad.py similarity index 87% rename from examples/v0/shopping/add_shopping_product_ad.py rename to examples/shopping/add_shopping_product_ad.py index 8c1d5e56c..96e3873b3 100644 --- a/examples/v0/shopping/add_shopping_product_ad.py +++ b/examples/shopping/add_shopping_product_ad.py @@ -47,7 +47,8 @@ def main(client, customer_id, merchant_center_account_id, campaign_resource_name) # Create a shopping product ad group ad. - add_shopping_product_ad_group_ad(client, customer_id, ad_group_resource_name) + add_shopping_product_ad_group_ad(client, customer_id, + ad_group_resource_name) if (create_default_listing_group): # Creates an ad group criterion containing a listing group. @@ -59,10 +60,12 @@ 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') + campaign_budget_service = client.get_service('CampaignBudgetService', + version='v1') # Create a budget, which can be shared by multiple campaigns. - campaign_budget_operation = client.get_type('CampaignBudgetOperation') + campaign_budget_operation = client.get_type('CampaignBudgetOperation', + version='v1') campaign_budget = campaign_budget_operation.create campaign_budget.name.value = 'Interplanetary Budget %s' % uuid.uuid4() campaign_budget.delivery_method = client.get_type( @@ -91,16 +94,19 @@ def add_campaign_budget(client, customer_id): return budget_resource_name -def add_shopping_product_ad_group_ad(client, customer_id, ad_group_resource_name): +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') + ad_group_ad_service = client.get_service('AdGroupAdService', version='v1') # Creates a new ad group ad and sets the product ad to it. - ad_group_ad_operation = client.get_type('AdGroupAdOperation') + ad_group_ad_operation = client.get_type('AdGroupAdOperation', version='v1') 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').PAUSED - ad_group_ad.ad.shopping_product_ad.CopyFrom(client.get_type('ShoppingProductAdInfo')) + ad_group_ad.status = client.get_type('AdGroupAdStatusEnum', + version='v1').PAUSED + ad_group_ad.ad.shopping_product_ad.CopyFrom(client.get_type( + 'ShoppingProductAdInfo')) # Add the ad group ad. try: @@ -118,24 +124,26 @@ def add_shopping_product_ad_group_ad(client, customer_id, ad_group_resource_name ad_group_ad_resource_name = ad_group_ad_response.results[0].resource_name - print('Created shopping product ad group ad %s.' % ad_group_ad_resource_name) + print('Created shopping product ad group ad %s.' % + ad_group_ad_resource_nam) return ad_group_resource_name 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') + ad_group_service = client.get_service('AdGroupService', version='v1') # Create ad group. - ad_group_operation = client.get_type('AdGroupOperation') + ad_group_operation = client.get_type('AdGroupOperation', version='v1') ad_group = ad_group_operation.create ad_group.name.value = 'Earth to Mars cruise %s' % uuid.uuid4() - ad_group.status = client.get_type('AdGroupStatusEnum').ENABLED + ad_group.status = client.get_type('AdGroupStatusEnum', version='v1').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').SHOPPING_PRODUCT_ADS + ad_group.type = client.get_type('AdGroupTypeEnum', + version='v1').SHOPPING_PRODUCT_ADS ad_group.cpc_bid_micros.value = 10000000 # Add the ad group. @@ -164,10 +172,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') + campaign_service = client.get_service('CampaignService', version='v1') # Create standard shoppping campaign. - campaign_operation = client.get_type('CampaignOperation') + campaign_operation = client.get_type('CampaignOperation', version='v1') campaign = campaign_operation.create campaign.name.value = 'Interplanetary Cruise Campaign %s' % uuid.uuid4() @@ -191,12 +199,12 @@ 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').PAUSED + campaign.status = client.get_type('CampaignStatusEnum', version='v1').PAUSED # Sets the bidding strategy to Manual CPC (with eCPC enabled) - # Recommendation: Use one of the automated bidding strategies for Shopping campaigns - # to help you optimize your advertising spend. More information can be found here: - # https://support.google.com/google-ads/answer/6309029 + # Recommendation: Use one of the automated bidding strategies for Shopping + # campaigns to help you optimize your advertising spend. More information + # can be found here: https://support.google.com/google-ads/answer/6309029 campaign.manual_cpc.enhanced_cpc_enabled.value = True # Sets the budget. @@ -233,11 +241,13 @@ def add_default_shopping_listing_group(client, customer_id, to the ad group using an "ad group criterion". The criterion will contain the bid for a given listing group. """ - ad_group_criterion_service = client.get_service('AdGroupCriterionService') + ad_group_criterion_service = client.get_service('AdGroupCriterionService', + version='v1') # Creates a new ad group criterion. This will contain the "default" listing # group (All products). - ad_group_criterion_operation = client.get_type('AdGroupCriterionOperation') + ad_group_criterion_operation = client.get_type('AdGroupCriterionOperation', + version='v1') 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( @@ -261,8 +271,9 @@ def add_default_shopping_listing_group(client, customer_id, print('\t\tOn field: %s' % field_path_element.field_name) sys.exit(1) - print('Added an ad group criterion containing a listing group with resource name: %s.' - % ad_group_criterion_response.results[0].resource_name) + print('Added an ad group criterion containing a listing group with \ + resource name: %s.' % + ad_group_criterion_response.results[0].resource_name) if __name__ == '__main__': diff --git a/examples/v0/reporting/__init__.py b/examples/targeting/__init__.py similarity index 100% rename from examples/v0/reporting/__init__.py rename to examples/targeting/__init__.py diff --git a/examples/v0/targeting/add_campaign_targeting_criteria.py b/examples/targeting/add_campaign_targeting_criteria.py similarity index 88% rename from examples/v0/targeting/add_campaign_targeting_criteria.py rename to examples/targeting/add_campaign_targeting_criteria.py index ff7fe5e61..3f49915e6 100644 --- a/examples/v0/targeting/add_campaign_targeting_criteria.py +++ b/examples/targeting/add_campaign_targeting_criteria.py @@ -23,7 +23,8 @@ def main(client, customer_id, campaign_id, keyword, location_id): - campaign_criterion_service = client.get_service('CampaignCriterionService') + campaign_criterion_service = client.get_service('CampaignCriterionService', + version='v1') operations = [ create_location_op(client, customer_id, campaign_id, location_id), @@ -50,11 +51,13 @@ def main(client, customer_id, campaign_id, keyword, location_id): def create_location_op(client, customer_id, campaign_id, location_id): - campaign_service = client.get_service('CampaignService') - geo_target_constant_service = client.get_service('GeoTargetConstantService') + campaign_service = client.get_service('CampaignService', version='v1') + geo_target_constant_service = client.get_service('GeoTargetConstantService', + version='v1') # Create the campaign criterion. - campaign_criterion_operation = client.get_type('CampaignCriterionOperation') + campaign_criterion_operation = client.get_type('CampaignCriterionOperation', + version='v1') campaign_criterion = campaign_criterion_operation.create campaign_criterion.campaign.value = campaign_service.campaign_path( customer_id, campaign_id) @@ -70,30 +73,34 @@ def create_location_op(client, customer_id, campaign_id, location_id): def create_negative_keyword_op(client, customer_id, campaign_id, keyword): - campaign_service = client.get_service('CampaignService') + campaign_service = client.get_service('CampaignService', version='v1') # Create the campaign criterion. - campaign_criterion_operation = client.get_type('CampaignCriterionOperation') + campaign_criterion_operation = client.get_type('CampaignCriterionOperation', + version='v1') 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.match_type = client.get_type('KeywordMatchTypeEnum').BROAD + criterion_keyword.match_type = client.get_type('KeywordMatchTypeEnum', + version='v1').BROAD return campaign_criterion_operation def create_proximity_op(client, customer_id, campaign_id): - campaign_service = client.get_service('CampaignService') + campaign_service = client.get_service('CampaignService', version='v1') # Create the campaign criterion. - campaign_criterion_operation = client.get_type('CampaignCriterionOperation') + campaign_criterion_operation = client.get_type('CampaignCriterionOperation', + version='v1') campaign_criterion = campaign_criterion_operation.create campaign_criterion.campaign.value = campaign_service.campaign_path( customer_id, campaign_id) - campaign_criterion.proximity.address.street_address.value = '38 avenue de l\'Opera' + campaign_criterion.proximity.address.street_address.value = ( + '38 avenue de l\'Opera') campaign_criterion.proximity.address.city_name.value = 'Paris' campaign_criterion.proximity.address.postal_code.value = '75002' campaign_criterion.proximity.address.country_code.value = 'FR' diff --git a/examples/v0/targeting/get_campaign_targeting_criteria.py b/examples/targeting/get_campaign_targeting_criteria.py similarity index 95% rename from examples/v0/targeting/get_campaign_targeting_criteria.py rename to examples/targeting/get_campaign_targeting_criteria.py index 7f03cf8bd..7536507e1 100644 --- a/examples/v0/targeting/get_campaign_targeting_criteria.py +++ b/examples/targeting/get_campaign_targeting_criteria.py @@ -27,7 +27,7 @@ def main(client, customer_id, campaign_id, page_size): - ga_service = client.get_service('GoogleAdsService') + ga_service = client.get_service('GoogleAdsService', version='v1') query = ('SELECT campaign.id, campaign_criterion.campaign, ' 'campaign_criterion.criterion_id, campaign_criterion.negative, ' @@ -44,7 +44,8 @@ def main(client, customer_id, campaign_id, page_size): print('Campaign criterion with ID "%s" was retrieved:' % criterion.criterion_id.value) - if criterion.type == client.get_type('CriterionTypeEnum').KEYWORD: + if criterion.type == client.get_type('CriterionTypeEnum', + version='v1').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/v0/targeting/get_geo_target_constant_by_names.py b/examples/targeting/get_geo_target_constant_by_names.py similarity index 90% rename from examples/v0/targeting/get_geo_target_constant_by_names.py rename to examples/targeting/get_geo_target_constant_by_names.py index 4aed856e2..137e1ddc1 100644 --- a/examples/v0/targeting/get_geo_target_constant_by_names.py +++ b/examples/targeting/get_geo_target_constant_by_names.py @@ -22,10 +22,11 @@ def main(client): - gtc_service = client.get_service('GeoTargetConstantService') + gtc_service = client.get_service('GeoTargetConstantService', version='v1') location_names = ( - client.get_type('SuggestGeoTargetConstantsRequest').LocationNames()) + client.get_type('SuggestGeoTargetConstantsRequest', + version='v1').LocationNames()) for location in ['Paris', 'Quebec', 'Spain', 'Deutschland']: location_name = location_names.names.add() @@ -33,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') + locale = client.get_type('StringValue', version='v1') 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') + country_code = client.get_type('StringValue', version='v1') 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 0cc0be79f..8c2de2ff3 100644 --- a/google/ads/google_ads/__init__.py +++ b/google/ads/google_ads/__init__.py @@ -20,4 +20,4 @@ import google.ads.google_ads.errors -VERSION = '0.7.0' +VERSION = '1.0.0' diff --git a/google/ads/google_ads/client.py b/google/ads/google_ads/client.py index 0646113d1..5fb80292e 100644 --- a/google/ads/google_ads/client.py +++ b/google/ads/google_ads/client.py @@ -17,14 +17,14 @@ import logging.config import os import yaml -from collections import namedtuple import json +from collections import namedtuple +from importlib import import_module import google.api_core.grpc_helpers import google.auth.transport.requests import google.oauth2.credentials import google.ads.google_ads.errors -from google.ads.google_ads.v0.proto.errors import errors_pb2 as error_protos from google.protobuf.json_format import MessageToJson import grpc @@ -36,8 +36,8 @@ _SERVICE_GRPC_TRANSPORT_TEMPLATE = '%sGrpcTransport' _PROTO_TEMPLATE = '%s_pb2' _DEFAULT_TOKEN_URI = 'https://accounts.google.com/o/oauth2/token' -_DEFAULT_VERSION = 'v0' - +_VALID_API_VERSIONS = ['v1', 'v0'] +_DEFAULT_VERSION = _VALID_API_VERSIONS[0] class GoogleAdsClient(object): """Google Ads client used to configure settings and fetch services.""" @@ -186,17 +186,18 @@ def get_service(self, name, version=_DEFAULT_VERSION): Raises: AttributeError: If the specified name doesn't exist. """ - version = _get_version(version) + api_module = _get_version(version) try: - service_client = getattr(version, _SERVICE_CLIENT_TEMPLATE % name) + service_client = getattr(api_module, + _SERVICE_CLIENT_TEMPLATE % name) except AttributeError: raise ValueError('Specified service "%s" does not exist in Google ' 'Ads API %s.' % (name, version)) try: service_transport_class = getattr( - version, _SERVICE_GRPC_TRANSPORT_TEMPLATE % name) + api_module, _SERVICE_GRPC_TRANSPORT_TEMPLATE % name) except AttributeError: raise ValueError('Grpc transport does not exist for the specified ' 'service "%s".' % name) @@ -212,7 +213,7 @@ def get_service(self, name, version=_DEFAULT_VERSION): channel, MetadataInterceptor(self.developer_token, self.login_customer_id), LoggingInterceptor(self.logging_config, endpoint), - ExceptionInterceptor() + ExceptionInterceptor(version) ) service_transport = service_transport_class(channel=channel) @@ -223,12 +224,22 @@ def get_service(self, name, version=_DEFAULT_VERSION): class ExceptionInterceptor(grpc.UnaryUnaryClientInterceptor): """An interceptor that wraps rpc exceptions.""" - _FAILURE_KEY = 'google.ads.googleads.v0.errors.googleadsfailure-bin' _REQUEST_ID_KEY = 'request-id' # Codes that are retried upon by google.api_core. _RETRY_STATUS_CODES = ( grpc.StatusCode.INTERNAL, grpc.StatusCode.RESOURCE_EXHAUSTED) + def __init__(self, version=_DEFAULT_VERSION): + """Initializes the ExceptionInterceptor + + Args: + version: a str of the API version of the request. + """ + self._version = version + self._failure_key = ( + 'google.ads.googleads.%s.errors.googleadsfailure-bin' % version) + + def _get_google_ads_failure(self, trailing_metadata): """Gets the Google Ads failure details if they exist. @@ -243,9 +254,12 @@ def _get_google_ads_failure(self, trailing_metadata): """ if trailing_metadata is not None: for kv in trailing_metadata: - if kv[0] == self._FAILURE_KEY: + if kv[0] == self._failure_key: try: - ga_failure = error_protos.GoogleAdsFailure() + error_protos = import_module( + 'google.ads.google_ads.%s.proto.errors' % + self._version) + ga_failure = error_protos.errors_pb2.GoogleAdsFailure() ga_failure.ParseFromString(kv[1]) return ga_failure except google.protobuf.message.DecodeError: @@ -664,10 +678,11 @@ def _get_version(name): A module associated with the given API version. """ try: - version = getattr(google.ads.google_ads, name) - except AttributeError: - raise ValueError('Specified Google Ads API version "%s" does not exist.' - % name) + version = import_module('google.ads.google_ads.%s' % name) + except ImportError: + raise ValueError('Specified Google Ads API version "%s" does not ' + 'exist. Valid API versions are: "%s"' % + (name, '", "'.join(_VALID_API_VERSIONS))) return version diff --git a/google/ads/google_ads/v1/__init__.py b/google/ads/google_ads/v1/__init__.py new file mode 100644 index 000000000..d0df51b84 --- /dev/null +++ b/google/ads/google_ads/v1/__init__.py @@ -0,0 +1,1376 @@ +# 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 __future__ import absolute_import + + +from google.ads.google_ads.1 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_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_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 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_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_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 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 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 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_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_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 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_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_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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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', + 'AdGroupExtensionSettingServiceClient', + 'AdGroupFeedServiceClient', + 'AdGroupLabelServiceClient', + 'AdGroupServiceClient', + 'AdParameterServiceClient', + 'AdScheduleViewServiceClient', + 'AgeRangeViewServiceClient', + 'BiddingStrategyServiceClient', + 'BillingSetupServiceClient', + 'CampaignAudienceViewServiceClient', + 'CampaignBidModifierServiceClient', + 'CampaignBudgetServiceClient', + 'CampaignCriterionServiceClient', + 'CampaignExtensionSettingServiceClient', + 'CampaignFeedServiceClient', + 'CampaignLabelServiceClient', + 'CampaignServiceClient', + 'CampaignSharedSetServiceClient', + 'CarrierConstantServiceClient', + 'ChangeStatusServiceClient', + 'ClickViewServiceClient', + 'ConversionActionServiceClient', + 'ConversionUploadServiceClient', + 'CustomerClientLinkServiceClient', + 'CustomerClientServiceClient', + 'CustomerExtensionSettingServiceClient', + 'CustomerFeedServiceClient', + 'CustomerLabelServiceClient', + 'CustomerManagerLinkServiceClient', + 'CustomerNegativeCriterionServiceClient', + 'CustomerServiceClient', + 'CustomInterestServiceClient', + 'DetailPlacementViewServiceClient', + 'DisplayKeywordViewServiceClient', + 'DomainCategoryServiceClient', + 'DynamicSearchAdsSearchTermViewServiceClient', + 'ExtensionFeedItemServiceClient', + 'FeedItemServiceClient', + 'FeedItemTargetServiceClient', + 'FeedMappingServiceClient', + 'FeedPlaceholderViewServiceClient', + 'FeedServiceClient', + 'GenderViewServiceClient', + 'GeographicViewServiceClient', + 'GeoTargetConstantServiceClient', + 'GoogleAdsFieldServiceClient', + 'GoogleAdsServiceClient', + 'GroupPlacementViewServiceClient', + 'HotelGroupViewServiceClient', + 'HotelPerformanceViewServiceClient', + 'KeywordPlanAdGroupServiceClient', + 'KeywordPlanCampaignServiceClient', + 'KeywordPlanIdeaServiceClient', + 'KeywordPlanKeywordServiceClient', + 'KeywordPlanNegativeKeywordServiceClient', + 'KeywordPlanServiceClient', + 'KeywordViewServiceClient', + 'LabelServiceClient', + 'LanguageConstantServiceClient', + 'LocationViewServiceClient', + 'ManagedPlacementViewServiceClient', + 'MediaFileServiceClient', + 'MerchantCenterLinkServiceClient', + 'MobileAppCategoryConstantServiceClient', + 'MobileDeviceConstantServiceClient', + 'MutateJobServiceClient', + 'OperatingSystemVersionConstantServiceClient', + 'ParentalStatusViewServiceClient', + 'PaymentsAccountServiceClient', + 'ProductBiddingCategoryConstantServiceClient', + 'ProductGroupViewServiceClient', + 'RecommendationServiceClient', + 'RemarketingActionServiceClient', + 'SearchTermViewServiceClient', + 'SharedCriterionServiceClient', + 'SharedSetServiceClient', + 'ShoppingPerformanceViewServiceClient', + 'TopicConstantServiceClient', + 'TopicViewServiceClient', + 'UserInterestServiceClient', + 'UserListServiceClient', + 'VideoServiceClient', + 'AccountBudgetProposalServiceGrpcTransport', + 'AccountBudgetServiceGrpcTransport', + 'AdGroupAdLabelServiceGrpcTransport', + 'AdGroupAdServiceGrpcTransport', + 'AdGroupAudienceViewServiceGrpcTransport', + 'AdGroupBidModifierServiceGrpcTransport', + 'AdGroupCriterionLabelServiceGrpcTransport', + 'AdGroupCriterionServiceGrpcTransport', + 'AdGroupExtensionSettingServiceGrpcTransport', + 'AdGroupFeedServiceGrpcTransport', + 'AdGroupLabelServiceGrpcTransport', + 'AdGroupServiceGrpcTransport', + 'AdParameterServiceGrpcTransport', + 'AdScheduleViewServiceGrpcTransport', + 'AgeRangeViewServiceGrpcTransport', + 'BiddingStrategyServiceGrpcTransport', + 'BillingSetupServiceGrpcTransport', + 'CampaignAudienceViewServiceGrpcTransport', + 'CampaignBidModifierServiceGrpcTransport', + 'CampaignBudgetServiceGrpcTransport', + 'CampaignCriterionServiceGrpcTransport', + 'CampaignExtensionSettingServiceGrpcTransport', + 'CampaignFeedServiceGrpcTransport', + 'CampaignLabelServiceGrpcTransport', + 'CampaignServiceGrpcTransport', + 'CampaignSharedSetServiceGrpcTransport', + 'CarrierConstantServiceGrpcTransport', + 'ChangeStatusServiceGrpcTransport', + 'ClickViewServiceGrpcTransport', + 'ConversionActionServiceGrpcTransport', + 'ConversionUploadServiceGrpcTransport', + 'CustomerClientLinkServiceGrpcTransport', + 'CustomerClientServiceGrpcTransport', + 'CustomerExtensionSettingServiceGrpcTransport', + 'CustomerFeedServiceGrpcTransport', + 'CustomerLabelServiceGrpcTransport', + 'CustomerManagerLinkServiceGrpcTransport', + 'CustomerNegativeCriterionServiceGrpcTransport', + 'CustomerServiceGrpcTransport', + 'CustomInterestServiceGrpcTransport', + 'DetailPlacementViewServiceGrpcTransport', + 'DisplayKeywordViewServiceGrpcTransport', + 'DomainCategoryServiceGrpcTransport', + 'DynamicSearchAdsSearchTermViewServiceGrpcTransport', + 'ExtensionFeedItemServiceGrpcTransport', + 'FeedItemServiceGrpcTransport', + 'FeedItemTargetServiceGrpcTransport', + 'FeedMappingServiceGrpcTransport', + 'FeedPlaceholderViewServiceGrpcTransport', + 'FeedServiceGrpcTransport', + 'GenderViewServiceGrpcTransport', + 'GeographicViewServiceGrpcTransport', + 'GeoTargetConstantServiceGrpcTransport', + 'GoogleAdsFieldServiceGrpcTransport', + 'GoogleAdsServiceGrpcTransport', + 'GroupPlacementViewServiceGrpcTransport', + 'HotelGroupViewServiceGrpcTransport', + 'HotelPerformanceViewServiceGrpcTransport', + 'KeywordPlanAdGroupServiceGrpcTransport', + 'KeywordPlanCampaignServiceGrpcTransport', + 'KeywordPlanIdeaServiceGrpcTransport', + 'KeywordPlanKeywordServiceGrpcTransport', + 'KeywordPlanNegativeKeywordServiceGrpcTransport', + 'KeywordPlanServiceGrpcTransport', + 'KeywordViewServiceGrpcTransport', + 'LabelServiceGrpcTransport', + 'LanguageConstantServiceGrpcTransport', + 'LocationViewServiceGrpcTransport', + 'ManagedPlacementViewServiceGrpcTransport', + 'MediaFileServiceGrpcTransport', + 'MerchantCenterLinkServiceGrpcTransport', + 'MobileAppCategoryConstantServiceGrpcTransport', + 'MobileDeviceConstantServiceGrpcTransport', + 'MutateJobServiceGrpcTransport', + 'OperatingSystemVersionConstantServiceGrpcTransport', + 'ParentalStatusViewServiceGrpcTransport', + 'PaymentsAccountServiceGrpcTransport', + 'ProductBiddingCategoryConstantServiceGrpcTransport', + 'ProductGroupViewServiceGrpcTransport', + 'RecommendationServiceGrpcTransport', + 'RemarketingActionServiceGrpcTransport', + 'SearchTermViewServiceGrpcTransport', + 'SharedCriterionServiceGrpcTransport', + 'SharedSetServiceGrpcTransport', + 'ShoppingPerformanceViewServiceGrpcTransport', + 'TopicConstantServiceGrpcTransport', + 'TopicViewServiceGrpcTransport', + 'UserInterestServiceGrpcTransport', + 'UserListServiceGrpcTransport', + 'VideoServiceGrpcTransport', +) diff --git a/examples/v0/targeting/__init__.py b/google/ads/google_ads/v1/proto/__init__.py similarity index 100% rename from examples/v0/targeting/__init__.py rename to google/ads/google_ads/v1/proto/__init__.py diff --git a/google/ads/google_ads/v1/proto/common/__init__.py b/google/ads/google_ads/v1/proto/common/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/google/ads/google_ads/v1/proto/common/ad_asset_pb2.py b/google/ads/google_ads/v1/proto/common/ad_asset_pb2.py new file mode 100644 index 000000000..1aa9ea74f --- /dev/null +++ b/google/ads/google_ads/v1/proto/common/ad_asset_pb2.py @@ -0,0 +1,97 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/common/ad_asset.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _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 served_asset_field_type_pb2 as google_dot_ads_dot_googleads__v1_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', + 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.ServedAssetFieldTypeB\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') + , + 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,]) + + + + +_ADTEXTASSET = _descriptor.Descriptor( + name='AdTextAsset', + full_name='google.ads.googleads.v1.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, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + 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=217, + serialized_end=374, +) + +_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 +DESCRIPTOR.message_types_by_name['AdTextAsset'] = _ADTEXTASSET +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +AdTextAsset = _reflection.GeneratedProtocolMessageType('AdTextAsset', (_message.Message,), dict( + DESCRIPTOR = _ADTEXTASSET, + __module__ = 'google.ads.googleads_v1.proto.common.ad_asset_pb2' + , + __doc__ = """A text asset used inside an ad. + + + Attributes: + text: + Asset text. + pinned_field: + The pinned field of the asset. This restricts the asset to + only serve within this field. Multiple assets can be pinned to + the same field. An asset that is unpinned or pinned to a + 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) + )) +_sym_db.RegisterMessage(AdTextAsset) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/common/ad_asset_pb2_grpc.py b/google/ads/google_ads/v1/proto/common/ad_asset_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/common/ad_asset_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/common/ad_type_infos_pb2.py b/google/ads/google_ads/v1/proto/common/ad_type_infos_pb2.py new file mode 100644 index 000000000..d31407795 --- /dev/null +++ b/google/ads/google_ads/v1/proto/common/ad_type_infos_pb2.py @@ -0,0 +1,1673 @@ +# 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 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\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\"\x85\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\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\"\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\"\x8f\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\"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.StringValueB\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_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=405, + serialized_end=569, +) + + +_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=572, + serialized_end=947, +) + + +_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='description1', full_name='google.ads.googleads.v1.common.CallOnlyAdInfo.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.CallOnlyAdInfo.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), + _descriptor.FieldDescriptor( + name='call_tracked', full_name='google.ads.googleads.v1.common.CallOnlyAdInfo.call_tracked', 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='disable_call_conversion', full_name='google.ads.googleads.v1.common.CallOnlyAdInfo.disable_call_conversion', 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_verification_url', full_name='google.ads.googleads.v1.common.CallOnlyAdInfo.phone_number_verification_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=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='conversion_action', full_name='google.ads.googleads.v1.common.CallOnlyAdInfo.conversion_action', 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='conversion_reporting_state', full_name='google.ads.googleads.v1.common.CallOnlyAdInfo.conversion_reporting_state', 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=950, + serialized_end=1595, +) + + +_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=1597, + serialized_end=1677, +) + + +_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=1679, + serialized_end=1692, +) + + +_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=1694, + serialized_end=1715, +) + + +_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=1717, + serialized_end=1740, +) + + +_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=1743, + serialized_end=2296, +) + + +_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=2299, + serialized_end=2514, +) + + +_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=2517, + serialized_end=2689, +) + + +_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=2692, + serialized_end=2895, +) + + +_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=2897, + serialized_end=2964, +) + + +_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=2967, + serialized_end=3592, +) + + +_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=3594, + serialized_end=3621, +) + + +_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=3623, + serialized_end=3656, +) + + +_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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3659, + serialized_end=3802, +) + + +_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=3804, + serialized_end=3925, +) + + +_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=3928, + serialized_end=4326, +) + + +_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=4329, + serialized_end=4574, +) + + +_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=4577, + serialized_end=5470, +) + +_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['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 +_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 +_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 +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['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 +_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. + 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) + +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. + """, + # @@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) + + +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/v1/proto/common/ad_type_infos_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/common/ad_type_infos_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/common/bidding_pb2.py b/google/ads/google_ads/v1/proto/common/bidding_pb2.py new file mode 100644 index 000000000..0c658a5e9 --- /dev/null +++ b/google/ads/google_ads/v1/proto/common/bidding_pb2.py @@ -0,0 +1,878 @@ +# 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\"\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,]) + + + + +_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=299, + serialized_end=312, +) + + +_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=314, + serialized_end=383, +) + + +_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=385, + serialized_end=396, +) + + +_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=398, + serialized_end=409, +) + + +_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=411, + serialized_end=432, +) + + +_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=434, + serialized_end=510, +) + + +_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=513, + serialized_end=967, +) + + +_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=970, + serialized_end=1157, +) + + +_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=1159, + serialized_end=1170, +) + + +_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=1173, + serialized_end=1434, +) + + +_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=1437, + serialized_end=1775, +) + + +_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=1778, + serialized_end=1961, +) + + +_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=1964, + serialized_end=2096, +) + + +_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=2099, + serialized_end=2230, +) + +_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['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) + +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/bidding_pb2_grpc.py b/google/ads/google_ads/v1/proto/common/bidding_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/common/bidding_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/common/click_location_pb2.py b/google/ads/google_ads/v1/proto/common/click_location_pb2.py new file mode 100644 index 000000000..6d0eede6e --- /dev/null +++ b/google/ads/google_ads/v1/proto/common/click_location_pb2.py @@ -0,0 +1,123 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/common/click_location.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf 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/click_location.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_protobuf_dot_wrappers__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_CLICKLOCATION = _descriptor.Descriptor( + name='ClickLocation', + full_name='google.ads.googleads.v1.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, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + 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, + 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=156, + serialized_end=406, +) + +_CLICKLOCATION.fields_by_name['city'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CLICKLOCATION.fields_by_name['country'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CLICKLOCATION.fields_by_name['metro'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CLICKLOCATION.fields_by_name['most_specific'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_CLICKLOCATION.fields_by_name['region'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +DESCRIPTOR.message_types_by_name['ClickLocation'] = _CLICKLOCATION +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ClickLocation = _reflection.GeneratedProtocolMessageType('ClickLocation', (_message.Message,), dict( + DESCRIPTOR = _CLICKLOCATION, + __module__ = 'google.ads.googleads_v1.proto.common.click_location_pb2' + , + __doc__ = """Location criteria associated with a click. + + + Attributes: + city: + The city location criterion associated with the impression. + country: + The country location criterion associated with the impression. + metro: + The metro location criterion associated with the impression. + most_specific: + The most specific location criterion associated with the + impression. + region: + The region location criterion associated with the impression. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.ClickLocation) + )) +_sym_db.RegisterMessage(ClickLocation) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/common/click_location_pb2_grpc.py b/google/ads/google_ads/v1/proto/common/click_location_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/common/click_location_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/common/criteria_pb2.py b/google/ads/google_ads/v1/proto/common/criteria_pb2.py new file mode 100644 index 000000000..4cbdcb851 --- /dev/null +++ b/google/ads/google_ads/v1/proto/common/criteria_pb2.py @@ -0,0 +1,3054 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/common/criteria.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _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 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 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.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', + 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\"\xb9\x08\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\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\"|\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.StringValueB\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') + , + 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_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,]) + + + + +_KEYWORDINFO = _descriptor.Descriptor( + name='KeywordInfo', + full_name='google.ads.googleads.v1.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, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + 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=1604, + serialized_end=1751, +) + + +_PLACEMENTINFO = _descriptor.Descriptor( + name='PlacementInfo', + full_name='google.ads.googleads.v1.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, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1753, + serialized_end=1811, +) + + +_MOBILEAPPCATEGORYINFO = _descriptor.Descriptor( + name='MobileAppCategoryInfo', + full_name='google.ads.googleads.v1.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, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1813, + serialized_end=1904, +) + + +_MOBILEAPPLICATIONINFO = _descriptor.Descriptor( + name='MobileApplicationInfo', + full_name='google.ads.googleads.v1.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, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1906, + serialized_end=1975, +) + + +_LOCATIONINFO = _descriptor.Descriptor( + name='LocationInfo', + full_name='google.ads.googleads.v1.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, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=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=2050, +) + + +_DEVICEINFO = _descriptor.Descriptor( + name='DeviceInfo', + full_name='google.ads.googleads.v1.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, + 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=2052, + serialized_end=2128, +) + + +_PREFERREDCONTENTINFO = _descriptor.Descriptor( + name='PreferredContentInfo', + full_name='google.ads.googleads.v1.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, + 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=2130, + serialized_end=2244, +) + + +_LISTINGGROUPINFO = _descriptor.Descriptor( + name='ListingGroupInfo', + full_name='google.ads.googleads.v1.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, + 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, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2247, + serialized_end=2488, +) + + +_LISTINGSCOPEINFO = _descriptor.Descriptor( + name='ListingScopeInfo', + full_name='google.ads.googleads.v1.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, + 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=2490, + serialized_end=2582, +) + + +_LISTINGDIMENSIONINFO = _descriptor.Descriptor( + name='ListingDimensionInfo', + full_name='google.ads.googleads.v1.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, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + 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, + 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, + 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, + has_default_value=False, default_value=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, + has_default_value=False, default_value=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, + 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, + 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, + 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, + 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, + 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='dimension', full_name='google.ads.googleads.v1.common.ListingDimensionInfo.dimension', + index=0, containing_type=None, fields=[]), + ], + serialized_start=2585, + serialized_end=3666, +) + + +_LISTINGBRANDINFO = _descriptor.Descriptor( + name='ListingBrandInfo', + full_name='google.ads.googleads.v1.common.ListingBrandInfo', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='value', full_name='google.ads.googleads.v1.common.ListingBrandInfo.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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3668, + serialized_end=3731, +) + + +_HOTELIDINFO = _descriptor.Descriptor( + name='HotelIdInfo', + full_name='google.ads.googleads.v1.common.HotelIdInfo', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='value', full_name='google.ads.googleads.v1.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, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3733, + serialized_end=3791, +) + + +_HOTELCLASSINFO = _descriptor.Descriptor( + name='HotelClassInfo', + full_name='google.ads.googleads.v1.common.HotelClassInfo', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='value', full_name='google.ads.googleads.v1.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, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3793, + serialized_end=3853, +) + + +_HOTELCOUNTRYREGIONINFO = _descriptor.Descriptor( + name='HotelCountryRegionInfo', + full_name='google.ads.googleads.v1.common.HotelCountryRegionInfo', + 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, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3855, + serialized_end=3943, +) + + +_HOTELSTATEINFO = _descriptor.Descriptor( + name='HotelStateInfo', + full_name='google.ads.googleads.v1.common.HotelStateInfo', + 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, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3945, + serialized_end=4016, +) + + +_HOTELCITYINFO = _descriptor.Descriptor( + name='HotelCityInfo', + full_name='google.ads.googleads.v1.common.HotelCityInfo', + 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, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=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=4087, +) + + +_LISTINGCUSTOMATTRIBUTEINFO = _descriptor.Descriptor( + name='ListingCustomAttributeInfo', + full_name='google.ads.googleads.v1.common.ListingCustomAttributeInfo', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='value', full_name='google.ads.googleads.v1.common.ListingCustomAttributeInfo.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=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=4090, + serialized_end=4270, +) + + +_PRODUCTBIDDINGCATEGORYINFO = _descriptor.Descriptor( + name='ProductBiddingCategoryInfo', + full_name='google.ads.googleads.v1.common.ProductBiddingCategoryInfo', + 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, + has_default_value=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=4273, + serialized_end=4501, +) + + +_PRODUCTCHANNELINFO = _descriptor.Descriptor( + name='ProductChannelInfo', + full_name='google.ads.googleads.v1.common.ProductChannelInfo', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name='channel', full_name='google.ads.googleads.v1.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, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=4503, + serialized_end=4606, +) + + +_PRODUCTCHANNELEXCLUSIVITYINFO = _descriptor.Descriptor( + name='ProductChannelExclusivityInfo', + full_name='google.ads.googleads.v1.common.ProductChannelExclusivityInfo', + 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, + 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=4609, + serialized_end=4757, +) + + +_PRODUCTCONDITIONINFO = _descriptor.Descriptor( + name='ProductConditionInfo', + full_name='google.ads.googleads.v1.common.ProductConditionInfo', + 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, + has_default_value=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=4759, + serialized_end=4870, +) + + +_PRODUCTITEMIDINFO = _descriptor.Descriptor( + name='ProductItemIdInfo', + full_name='google.ads.googleads.v1.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, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=4872, + serialized_end=4936, +) + + +_PRODUCTTYPEINFO = _descriptor.Descriptor( + name='ProductTypeInfo', + full_name='google.ads.googleads.v1.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, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + 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=4939, + serialized_end=5086, +) + + +_HOTELDATESELECTIONTYPEINFO = _descriptor.Descriptor( + name='HotelDateSelectionTypeInfo', + full_name='google.ads.googleads.v1.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, + 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=5088, + serialized_end=5212, +) + + +_HOTELADVANCEBOOKINGWINDOWINFO = _descriptor.Descriptor( + name='HotelAdvanceBookingWindowInfo', + full_name='google.ads.googleads.v1.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, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=5214, + serialized_end=5339, +) + + +_HOTELLENGTHOFSTAYINFO = _descriptor.Descriptor( + name='HotelLengthOfStayInfo', + full_name='google.ads.googleads.v1.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, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=5341, + serialized_end=5462, +) + + +_HOTELCHECKINDAYINFO = _descriptor.Descriptor( + name='HotelCheckInDayInfo', + full_name='google.ads.googleads.v1.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, + 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=5464, + serialized_end=5562, +) + + +_INTERACTIONTYPEINFO = _descriptor.Descriptor( + name='InteractionTypeInfo', + full_name='google.ads.googleads.v1.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, + 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=5564, + serialized_end=5667, +) + + +_ADSCHEDULEINFO = _descriptor.Descriptor( + name='AdScheduleInfo', + full_name='google.ads.googleads.v1.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, + 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, + 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, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + 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, + 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=5670, + serialized_end=6025, +) + + +_AGERANGEINFO = _descriptor.Descriptor( + name='AgeRangeInfo', + full_name='google.ads.googleads.v1.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, + 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=6027, + serialized_end=6117, +) + + +_GENDERINFO = _descriptor.Descriptor( + name='GenderInfo', + full_name='google.ads.googleads.v1.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, + 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=6119, + serialized_end=6203, +) + + +_INCOMERANGEINFO = _descriptor.Descriptor( + name='IncomeRangeInfo', + full_name='google.ads.googleads.v1.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, + 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=6205, + serialized_end=6304, +) + + +_PARENTALSTATUSINFO = _descriptor.Descriptor( + name='ParentalStatusInfo', + full_name='google.ads.googleads.v1.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, + 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=6306, + serialized_end=6414, +) + + +_YOUTUBEVIDEOINFO = _descriptor.Descriptor( + name='YouTubeVideoInfo', + full_name='google.ads.googleads.v1.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, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=6416, + serialized_end=6482, +) + + +_YOUTUBECHANNELINFO = _descriptor.Descriptor( + name='YouTubeChannelInfo', + full_name='google.ads.googleads.v1.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, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=6484, + serialized_end=6554, +) + + +_USERLISTINFO = _descriptor.Descriptor( + name='UserListInfo', + full_name='google.ads.googleads.v1.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, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=6556, + serialized_end=6619, +) + + +_PROXIMITYINFO = _descriptor.Descriptor( + name='ProximityInfo', + full_name='google.ads.googleads.v1.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, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + 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, + 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=6622, + serialized_end=6910, +) + + +_GEOPOINTINFO = _descriptor.Descriptor( + name='GeoPointInfo', + full_name='google.ads.googleads.v1.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, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=6913, + serialized_end=7056, +) + + +_ADDRESSINFO = _descriptor.Descriptor( + name='AddressInfo', + full_name='google.ads.googleads.v1.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, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + 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, + 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, + 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, + 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=7059, + serialized_end=7439, +) + + +_TOPICINFO = _descriptor.Descriptor( + name='TopicInfo', + full_name='google.ads.googleads.v1.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, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + 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=7441, + serialized_end=7550, +) + + +_LANGUAGEINFO = _descriptor.Descriptor( + name='LanguageInfo', + full_name='google.ads.googleads.v1.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, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=7552, + serialized_end=7623, +) + + +_IPBLOCKINFO = _descriptor.Descriptor( + name='IpBlockInfo', + full_name='google.ads.googleads.v1.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, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=7625, + serialized_end=7688, +) + + +_CONTENTLABELINFO = _descriptor.Descriptor( + name='ContentLabelInfo', + full_name='google.ads.googleads.v1.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, + 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=7690, + serialized_end=7792, +) + + +_CARRIERINFO = _descriptor.Descriptor( + name='CarrierInfo', + full_name='google.ads.googleads.v1.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, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=7794, + serialized_end=7863, +) + + +_USERINTERESTINFO = _descriptor.Descriptor( + name='UserInterestInfo', + full_name='google.ads.googleads.v1.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, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=7865, + serialized_end=7945, +) + + +_WEBPAGEINFO = _descriptor.Descriptor( + name='WebpageInfo', + full_name='google.ads.googleads.v1.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, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + 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=7948, + serialized_end=8089, +) + + +_WEBPAGECONDITIONINFO = _descriptor.Descriptor( + name='WebpageConditionInfo', + full_name='google.ads.googleads.v1.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, + 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, + 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, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=8092, + serialized_end=8367, +) + + +_OPERATINGSYSTEMVERSIONINFO = _descriptor.Descriptor( + name='OperatingSystemVersionInfo', + full_name='google.ads.googleads.v1.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, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=8369, + serialized_end=8470, +) + + +_APPPAYMENTMODELINFO = _descriptor.Descriptor( + name='AppPaymentModelInfo', + full_name='google.ads.googleads.v1.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, + 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=8472, + serialized_end=8583, +) + + +_MOBILEDEVICEINFO = _descriptor.Descriptor( + name='MobileDeviceInfo', + full_name='google.ads.googleads.v1.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, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=8585, + serialized_end=8665, +) + + +_CUSTOMAFFINITYINFO = _descriptor.Descriptor( + name='CustomAffinityInfo', + full_name='google.ads.googleads.v1.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, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=8667, + serialized_end=8742, +) + + +_CUSTOMINTENTINFO = _descriptor.Descriptor( + name='CustomIntentInfo', + full_name='google.ads.googleads.v1.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, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=8744, + serialized_end=8815, +) + +_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 +_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 +_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 +_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_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_item_id'].message_type = _PRODUCTITEMIDINFO +_LISTINGDIMENSIONINFO.fields_by_name['product_type'].message_type = _PRODUCTTYPEINFO +_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'] +_LISTINGDIMENSIONINFO.oneofs_by_name['dimension'].fields.append( + _LISTINGDIMENSIONINFO.fields_by_name['hotel_class']) +_LISTINGDIMENSIONINFO.fields_by_name['hotel_class'].containing_oneof = _LISTINGDIMENSIONINFO.oneofs_by_name['dimension'] +_LISTINGDIMENSIONINFO.oneofs_by_name['dimension'].fields.append( + _LISTINGDIMENSIONINFO.fields_by_name['hotel_country_region']) +_LISTINGDIMENSIONINFO.fields_by_name['hotel_country_region'].containing_oneof = _LISTINGDIMENSIONINFO.oneofs_by_name['dimension'] +_LISTINGDIMENSIONINFO.oneofs_by_name['dimension'].fields.append( + _LISTINGDIMENSIONINFO.fields_by_name['hotel_state']) +_LISTINGDIMENSIONINFO.fields_by_name['hotel_state'].containing_oneof = _LISTINGDIMENSIONINFO.oneofs_by_name['dimension'] +_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_channel']) +_LISTINGDIMENSIONINFO.fields_by_name['product_channel'].containing_oneof = _LISTINGDIMENSIONINFO.oneofs_by_name['dimension'] +_LISTINGDIMENSIONINFO.oneofs_by_name['dimension'].fields.append( + _LISTINGDIMENSIONINFO.fields_by_name['product_channel_exclusivity']) +_LISTINGDIMENSIONINFO.fields_by_name['product_channel_exclusivity'].containing_oneof = _LISTINGDIMENSIONINFO.oneofs_by_name['dimension'] +_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_item_id']) +_LISTINGDIMENSIONINFO.fields_by_name['product_item_id'].containing_oneof = _LISTINGDIMENSIONINFO.oneofs_by_name['dimension'] +_LISTINGDIMENSIONINFO.oneofs_by_name['dimension'].fields.append( + _LISTINGDIMENSIONINFO.fields_by_name['product_type']) +_LISTINGDIMENSIONINFO.fields_by_name['product_type'].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 +_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 +_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 +_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 +_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['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 +_ADDRESSINFO.fields_by_name['postal_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ADDRESSINFO.fields_by_name['province_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ADDRESSINFO.fields_by_name['country_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ADDRESSINFO.fields_by_name['province_name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ADDRESSINFO.fields_by_name['street_address'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ADDRESSINFO.fields_by_name['street_address2'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_ADDRESSINFO.fields_by_name['city_name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_TOPICINFO.fields_by_name['topic_constant'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_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 +_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['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 +_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 +DESCRIPTOR.message_types_by_name['KeywordInfo'] = _KEYWORDINFO +DESCRIPTOR.message_types_by_name['PlacementInfo'] = _PLACEMENTINFO +DESCRIPTOR.message_types_by_name['MobileAppCategoryInfo'] = _MOBILEAPPCATEGORYINFO +DESCRIPTOR.message_types_by_name['MobileApplicationInfo'] = _MOBILEAPPLICATIONINFO +DESCRIPTOR.message_types_by_name['LocationInfo'] = _LOCATIONINFO +DESCRIPTOR.message_types_by_name['DeviceInfo'] = _DEVICEINFO +DESCRIPTOR.message_types_by_name['PreferredContentInfo'] = _PREFERREDCONTENTINFO +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['ProductChannelInfo'] = _PRODUCTCHANNELINFO +DESCRIPTOR.message_types_by_name['ProductChannelExclusivityInfo'] = _PRODUCTCHANNELEXCLUSIVITYINFO +DESCRIPTOR.message_types_by_name['ProductConditionInfo'] = _PRODUCTCONDITIONINFO +DESCRIPTOR.message_types_by_name['ProductItemIdInfo'] = _PRODUCTITEMIDINFO +DESCRIPTOR.message_types_by_name['ProductTypeInfo'] = _PRODUCTTYPEINFO +DESCRIPTOR.message_types_by_name['HotelDateSelectionTypeInfo'] = _HOTELDATESELECTIONTYPEINFO +DESCRIPTOR.message_types_by_name['HotelAdvanceBookingWindowInfo'] = _HOTELADVANCEBOOKINGWINDOWINFO +DESCRIPTOR.message_types_by_name['HotelLengthOfStayInfo'] = _HOTELLENGTHOFSTAYINFO +DESCRIPTOR.message_types_by_name['HotelCheckInDayInfo'] = _HOTELCHECKINDAYINFO +DESCRIPTOR.message_types_by_name['InteractionTypeInfo'] = _INTERACTIONTYPEINFO +DESCRIPTOR.message_types_by_name['AdScheduleInfo'] = _ADSCHEDULEINFO +DESCRIPTOR.message_types_by_name['AgeRangeInfo'] = _AGERANGEINFO +DESCRIPTOR.message_types_by_name['GenderInfo'] = _GENDERINFO +DESCRIPTOR.message_types_by_name['IncomeRangeInfo'] = _INCOMERANGEINFO +DESCRIPTOR.message_types_by_name['ParentalStatusInfo'] = _PARENTALSTATUSINFO +DESCRIPTOR.message_types_by_name['YouTubeVideoInfo'] = _YOUTUBEVIDEOINFO +DESCRIPTOR.message_types_by_name['YouTubeChannelInfo'] = _YOUTUBECHANNELINFO +DESCRIPTOR.message_types_by_name['UserListInfo'] = _USERLISTINFO +DESCRIPTOR.message_types_by_name['ProximityInfo'] = _PROXIMITYINFO +DESCRIPTOR.message_types_by_name['GeoPointInfo'] = _GEOPOINTINFO +DESCRIPTOR.message_types_by_name['AddressInfo'] = _ADDRESSINFO +DESCRIPTOR.message_types_by_name['TopicInfo'] = _TOPICINFO +DESCRIPTOR.message_types_by_name['LanguageInfo'] = _LANGUAGEINFO +DESCRIPTOR.message_types_by_name['IpBlockInfo'] = _IPBLOCKINFO +DESCRIPTOR.message_types_by_name['ContentLabelInfo'] = _CONTENTLABELINFO +DESCRIPTOR.message_types_by_name['CarrierInfo'] = _CARRIERINFO +DESCRIPTOR.message_types_by_name['UserInterestInfo'] = _USERINTERESTINFO +DESCRIPTOR.message_types_by_name['WebpageInfo'] = _WEBPAGEINFO +DESCRIPTOR.message_types_by_name['WebpageConditionInfo'] = _WEBPAGECONDITIONINFO +DESCRIPTOR.message_types_by_name['OperatingSystemVersionInfo'] = _OPERATINGSYSTEMVERSIONINFO +DESCRIPTOR.message_types_by_name['AppPaymentModelInfo'] = _APPPAYMENTMODELINFO +DESCRIPTOR.message_types_by_name['MobileDeviceInfo'] = _MOBILEDEVICEINFO +DESCRIPTOR.message_types_by_name['CustomAffinityInfo'] = _CUSTOMAFFINITYINFO +DESCRIPTOR.message_types_by_name['CustomIntentInfo'] = _CUSTOMINTENTINFO +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +KeywordInfo = _reflection.GeneratedProtocolMessageType('KeywordInfo', (_message.Message,), dict( + DESCRIPTOR = _KEYWORDINFO, + __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + , + __doc__ = """A keyword criterion. + + + Attributes: + text: + The text of the keyword (at most 80 characters and 10 words). + match_type: + The match type of the keyword. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.KeywordInfo) + )) +_sym_db.RegisterMessage(KeywordInfo) + +PlacementInfo = _reflection.GeneratedProtocolMessageType('PlacementInfo', (_message.Message,), dict( + DESCRIPTOR = _PLACEMENTINFO, + __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + , + __doc__ = """A placement criterion. This can be used to modify bids for sites when + targeting the content network. + + + Attributes: + url: + URL of the placement. For example, "http://www.domain.com". + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.PlacementInfo) + )) +_sym_db.RegisterMessage(PlacementInfo) + +MobileAppCategoryInfo = _reflection.GeneratedProtocolMessageType('MobileAppCategoryInfo', (_message.Message,), dict( + DESCRIPTOR = _MOBILEAPPCATEGORYINFO, + __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + , + __doc__ = """A mobile app category criterion. + + + Attributes: + mobile_app_category_constant: + The mobile app category constant resource name. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.MobileAppCategoryInfo) + )) +_sym_db.RegisterMessage(MobileAppCategoryInfo) + +MobileApplicationInfo = _reflection.GeneratedProtocolMessageType('MobileApplicationInfo', (_message.Message,), dict( + DESCRIPTOR = _MOBILEAPPLICATIONINFO, + __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + , + __doc__ = """A mobile application criterion. + + + Attributes: + app_id: + A string that uniquely identifies a mobile application to + Google Ads API. The format of this string is + "{platform}-{platform\_native\_id}", where platform is "1" for + iOS apps and "2" for Android apps, and where + platform\_native\_id is the mobile application identifier + 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. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.MobileApplicationInfo) + )) +_sym_db.RegisterMessage(MobileApplicationInfo) + +LocationInfo = _reflection.GeneratedProtocolMessageType('LocationInfo', (_message.Message,), dict( + DESCRIPTOR = _LOCATIONINFO, + __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + , + __doc__ = """A location criterion. + + + Attributes: + geo_target_constant: + The geo target constant resource name. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.LocationInfo) + )) +_sym_db.RegisterMessage(LocationInfo) + +DeviceInfo = _reflection.GeneratedProtocolMessageType('DeviceInfo', (_message.Message,), dict( + DESCRIPTOR = _DEVICEINFO, + __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + , + __doc__ = """A device criterion. + + + Attributes: + type: + Type of the device. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.DeviceInfo) + )) +_sym_db.RegisterMessage(DeviceInfo) + +PreferredContentInfo = _reflection.GeneratedProtocolMessageType('PreferredContentInfo', (_message.Message,), dict( + DESCRIPTOR = _PREFERREDCONTENTINFO, + __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + , + __doc__ = """A preferred content criterion. + + + Attributes: + type: + Type of the preferred content. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.PreferredContentInfo) + )) +_sym_db.RegisterMessage(PreferredContentInfo) + +ListingGroupInfo = _reflection.GeneratedProtocolMessageType('ListingGroupInfo', (_message.Message,), dict( + DESCRIPTOR = _LISTINGGROUPINFO, + __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + , + __doc__ = """A listing group criterion. + + + Attributes: + type: + Type of the listing group. + case_value: + Dimension value with which this listing group is refining its + parent. Undefined for the root group. + parent_ad_group_criterion: + 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) + )) +_sym_db.RegisterMessage(ListingGroupInfo) + +ListingScopeInfo = _reflection.GeneratedProtocolMessageType('ListingScopeInfo', (_message.Message,), dict( + DESCRIPTOR = _LISTINGSCOPEINFO, + __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + , + __doc__ = """A listing scope criterion. + + + Attributes: + dimensions: + Scope of the campaign criterion. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.ListingScopeInfo) + )) +_sym_db.RegisterMessage(ListingScopeInfo) + +ListingDimensionInfo = _reflection.GeneratedProtocolMessageType('ListingDimensionInfo', (_message.Message,), dict( + DESCRIPTOR = _LISTINGDIMENSIONINFO, + __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + , + __doc__ = """Listing dimensions for listing group criterion. + + + 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: + Class of the hotel as a number of stars 1 to 5. + hotel_country_region: + Country or Region the hotel is located in. + hotel_state: + 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_channel: + Locality of a product offer. + product_channel_exclusivity: + Availability of a product offer. + product_condition: + Condition of a product offer. + product_item_id: + Item id of a product offer. + product_type: + Type of a product offer. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.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' + , + __doc__ = """Advertiser-specific hotel ID. + + + Attributes: + value: + String value of the hotel ID. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.HotelIdInfo) + )) +_sym_db.RegisterMessage(HotelIdInfo) + +HotelClassInfo = _reflection.GeneratedProtocolMessageType('HotelClassInfo', (_message.Message,), dict( + DESCRIPTOR = _HOTELCLASSINFO, + __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + , + __doc__ = """Class of the hotel as a number of stars 1 to 5. + + + Attributes: + value: + Long value of the hotel class. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.HotelClassInfo) + )) +_sym_db.RegisterMessage(HotelClassInfo) + +HotelCountryRegionInfo = _reflection.GeneratedProtocolMessageType('HotelCountryRegionInfo', (_message.Message,), dict( + DESCRIPTOR = _HOTELCOUNTRYREGIONINFO, + __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + , + __doc__ = """Country or Region the hotel is located in. + + + Attributes: + country_region_criterion: + The Geo Target Constant resource name. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.HotelCountryRegionInfo) + )) +_sym_db.RegisterMessage(HotelCountryRegionInfo) + +HotelStateInfo = _reflection.GeneratedProtocolMessageType('HotelStateInfo', (_message.Message,), dict( + DESCRIPTOR = _HOTELSTATEINFO, + __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + , + __doc__ = """State the hotel is located in. + + + Attributes: + state_criterion: + The Geo Target Constant resource name. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.HotelStateInfo) + )) +_sym_db.RegisterMessage(HotelStateInfo) + +HotelCityInfo = _reflection.GeneratedProtocolMessageType('HotelCityInfo', (_message.Message,), dict( + DESCRIPTOR = _HOTELCITYINFO, + __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + , + __doc__ = """City the hotel is located in. + + + Attributes: + city_criterion: + The Geo Target Constant resource name. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.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' + , + __doc__ = """Bidding category of a product offer. + + + Attributes: + 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. It must match the + campaign.shopping\_setting.sales\_country field. + level: + Level of the product bidding category. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.ProductBiddingCategoryInfo) + )) +_sym_db.RegisterMessage(ProductBiddingCategoryInfo) + +ProductChannelInfo = _reflection.GeneratedProtocolMessageType('ProductChannelInfo', (_message.Message,), dict( + DESCRIPTOR = _PRODUCTCHANNELINFO, + __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + , + __doc__ = """Locality of a product offer. + + + Attributes: + channel: + Value of the locality. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.ProductChannelInfo) + )) +_sym_db.RegisterMessage(ProductChannelInfo) + +ProductChannelExclusivityInfo = _reflection.GeneratedProtocolMessageType('ProductChannelExclusivityInfo', (_message.Message,), dict( + DESCRIPTOR = _PRODUCTCHANNELEXCLUSIVITYINFO, + __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + , + __doc__ = """Availability of a product offer. + + + Attributes: + channel_exclusivity: + Value of the availability. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.ProductChannelExclusivityInfo) + )) +_sym_db.RegisterMessage(ProductChannelExclusivityInfo) + +ProductConditionInfo = _reflection.GeneratedProtocolMessageType('ProductConditionInfo', (_message.Message,), dict( + DESCRIPTOR = _PRODUCTCONDITIONINFO, + __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + , + __doc__ = """Condition of a product offer. + + + Attributes: + condition: + Value of the condition. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.ProductConditionInfo) + )) +_sym_db.RegisterMessage(ProductConditionInfo) + +ProductItemIdInfo = _reflection.GeneratedProtocolMessageType('ProductItemIdInfo', (_message.Message,), dict( + DESCRIPTOR = _PRODUCTITEMIDINFO, + __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + , + __doc__ = """Item id of a product offer. + + + Attributes: + value: + Value of the id. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.ProductItemIdInfo) + )) +_sym_db.RegisterMessage(ProductItemIdInfo) + +ProductTypeInfo = _reflection.GeneratedProtocolMessageType('ProductTypeInfo', (_message.Message,), dict( + DESCRIPTOR = _PRODUCTTYPEINFO, + __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + , + __doc__ = """Type of a product offer. + + + Attributes: + value: + Value of the type. + level: + Level of the type. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.ProductTypeInfo) + )) +_sym_db.RegisterMessage(ProductTypeInfo) + +HotelDateSelectionTypeInfo = _reflection.GeneratedProtocolMessageType('HotelDateSelectionTypeInfo', (_message.Message,), dict( + DESCRIPTOR = _HOTELDATESELECTIONTYPEINFO, + __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + , + __doc__ = """Criterion for hotel date selection (default dates vs. user selected). + + + Attributes: + type: + Type of the hotel date selection + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.HotelDateSelectionTypeInfo) + )) +_sym_db.RegisterMessage(HotelDateSelectionTypeInfo) + +HotelAdvanceBookingWindowInfo = _reflection.GeneratedProtocolMessageType('HotelAdvanceBookingWindowInfo', (_message.Message,), dict( + DESCRIPTOR = _HOTELADVANCEBOOKINGWINDOWINFO, + __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + , + __doc__ = """Criterion for number of days prior to the stay the booking is being + made. + + + Attributes: + min_days: + Low end of the number of days prior to the stay. + max_days: + High end of the number of days prior to the stay. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.HotelAdvanceBookingWindowInfo) + )) +_sym_db.RegisterMessage(HotelAdvanceBookingWindowInfo) + +HotelLengthOfStayInfo = _reflection.GeneratedProtocolMessageType('HotelLengthOfStayInfo', (_message.Message,), dict( + DESCRIPTOR = _HOTELLENGTHOFSTAYINFO, + __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + , + __doc__ = """Criterion for length of hotel stay in nights. + + + Attributes: + min_nights: + Low end of the number of nights in the stay. + max_nights: + High end of the number of nights in the stay. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.HotelLengthOfStayInfo) + )) +_sym_db.RegisterMessage(HotelLengthOfStayInfo) + +HotelCheckInDayInfo = _reflection.GeneratedProtocolMessageType('HotelCheckInDayInfo', (_message.Message,), dict( + DESCRIPTOR = _HOTELCHECKINDAYINFO, + __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + , + __doc__ = """Criterion for day of the week the booking is for. + + + Attributes: + day_of_week: + The day of the week. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.HotelCheckInDayInfo) + )) +_sym_db.RegisterMessage(HotelCheckInDayInfo) + +InteractionTypeInfo = _reflection.GeneratedProtocolMessageType('InteractionTypeInfo', (_message.Message,), dict( + DESCRIPTOR = _INTERACTIONTYPEINFO, + __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + , + __doc__ = """Criterion for Interaction Type. + + + Attributes: + type: + The interaction type. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.InteractionTypeInfo) + )) +_sym_db.RegisterMessage(InteractionTypeInfo) + +AdScheduleInfo = _reflection.GeneratedProtocolMessageType('AdScheduleInfo', (_message.Message,), dict( + DESCRIPTOR = _ADSCHEDULEINFO, + __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + , + __doc__ = """Represents an AdSchedule criterion. + + AdSchedule is specified as the day of the week and a time interval + within which ads will be shown. + + No more than six AdSchedules can be added for the same day. + + + Attributes: + start_minute: + Minutes after the start hour at which this schedule starts. + This field is required for CREATE operations and is prohibited + on UPDATE operations. + end_minute: + Minutes after the end hour at which this schedule ends. The + schedule is exclusive of the end minute. This field is + required for CREATE operations and is prohibited on UPDATE + operations. + start_hour: + Starting hour in 24 hour time. This field must be between 0 + and 23, inclusive. This field is required for CREATE + operations and is prohibited on UPDATE operations. + end_hour: + Ending hour in 24 hour time; 24 signifies end of the day. This + field must be between 0 and 24, inclusive. This field is + required for CREATE operations and is prohibited on UPDATE + operations. + day_of_week: + Day of the week the schedule applies to. This field is + required for CREATE operations and is prohibited on UPDATE + operations. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.AdScheduleInfo) + )) +_sym_db.RegisterMessage(AdScheduleInfo) + +AgeRangeInfo = _reflection.GeneratedProtocolMessageType('AgeRangeInfo', (_message.Message,), dict( + DESCRIPTOR = _AGERANGEINFO, + __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + , + __doc__ = """An age range criterion. + + + Attributes: + type: + Type of the age range. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.AgeRangeInfo) + )) +_sym_db.RegisterMessage(AgeRangeInfo) + +GenderInfo = _reflection.GeneratedProtocolMessageType('GenderInfo', (_message.Message,), dict( + DESCRIPTOR = _GENDERINFO, + __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + , + __doc__ = """A gender criterion. + + + Attributes: + type: + Type of the gender. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.GenderInfo) + )) +_sym_db.RegisterMessage(GenderInfo) + +IncomeRangeInfo = _reflection.GeneratedProtocolMessageType('IncomeRangeInfo', (_message.Message,), dict( + DESCRIPTOR = _INCOMERANGEINFO, + __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + , + __doc__ = """An income range criterion. + + + Attributes: + type: + Type of the income range. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.IncomeRangeInfo) + )) +_sym_db.RegisterMessage(IncomeRangeInfo) + +ParentalStatusInfo = _reflection.GeneratedProtocolMessageType('ParentalStatusInfo', (_message.Message,), dict( + DESCRIPTOR = _PARENTALSTATUSINFO, + __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + , + __doc__ = """A parental status criterion. + + + Attributes: + type: + Type of the parental status. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.ParentalStatusInfo) + )) +_sym_db.RegisterMessage(ParentalStatusInfo) + +YouTubeVideoInfo = _reflection.GeneratedProtocolMessageType('YouTubeVideoInfo', (_message.Message,), dict( + DESCRIPTOR = _YOUTUBEVIDEOINFO, + __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + , + __doc__ = """A YouTube Video criterion. + + + Attributes: + video_id: + YouTube video id as it appears on the YouTube watch page. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.YouTubeVideoInfo) + )) +_sym_db.RegisterMessage(YouTubeVideoInfo) + +YouTubeChannelInfo = _reflection.GeneratedProtocolMessageType('YouTubeChannelInfo', (_message.Message,), dict( + DESCRIPTOR = _YOUTUBECHANNELINFO, + __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + , + __doc__ = """A YouTube Channel criterion. + + + Attributes: + channel_id: + The YouTube uploader channel id or the channel code of a + YouTube channel. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.YouTubeChannelInfo) + )) +_sym_db.RegisterMessage(YouTubeChannelInfo) + +UserListInfo = _reflection.GeneratedProtocolMessageType('UserListInfo', (_message.Message,), dict( + DESCRIPTOR = _USERLISTINFO, + __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + , + __doc__ = """A User List criterion. Represents a user list that is defined by the + advertiser to be targeted. + + + Attributes: + user_list: + The User List resource name. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.UserListInfo) + )) +_sym_db.RegisterMessage(UserListInfo) + +ProximityInfo = _reflection.GeneratedProtocolMessageType('ProximityInfo', (_message.Message,), dict( + DESCRIPTOR = _PROXIMITYINFO, + __module__ = 'google.ads.googleads_v1.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 + point that does not affect ad serving. + + There are two ways to create a proximity. First, by setting an address + and radius. The geo point will be automatically computed. Second, by + setting a geo point and radius. The address is an optional label that + won't be validated. + + + Attributes: + geo_point: + Latitude and longitude. + radius: + The radius of the proximity. + radius_units: + The unit of measurement of the radius. Default is KILOMETERS. + address: + Full address. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.ProximityInfo) + )) +_sym_db.RegisterMessage(ProximityInfo) + +GeoPointInfo = _reflection.GeneratedProtocolMessageType('GeoPointInfo', (_message.Message,), dict( + DESCRIPTOR = _GEOPOINTINFO, + __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + , + __doc__ = """Geo point for proximity criterion. + + + Attributes: + longitude_in_micro_degrees: + Micro degrees for the longitude. + latitude_in_micro_degrees: + Micro degrees for the latitude. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.GeoPointInfo) + )) +_sym_db.RegisterMessage(GeoPointInfo) + +AddressInfo = _reflection.GeneratedProtocolMessageType('AddressInfo', (_message.Message,), dict( + DESCRIPTOR = _ADDRESSINFO, + __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + , + __doc__ = """Address for proximity criterion. + + + Attributes: + postal_code: + Postal code. + province_code: + Province or state code. + country_code: + Country code. + province_name: + Province or state name. + street_address: + Street address line 1. + street_address2: + Street address line 2. This field is write-only. It is only + used for calculating the longitude and latitude of an address + when geo\_point is empty. + city_name: + Name of the city. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.AddressInfo) + )) +_sym_db.RegisterMessage(AddressInfo) + +TopicInfo = _reflection.GeneratedProtocolMessageType('TopicInfo', (_message.Message,), dict( + DESCRIPTOR = _TOPICINFO, + __module__ = 'google.ads.googleads_v1.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 + falls (for example, "Pets & Animals/Pets/Dogs"). + + + Attributes: + topic_constant: + The Topic Constant resource name. + path: + The category to target or exclude. Each subsequent element in + the array describes a more specific sub-category. For example, + "Pets & Animals", "Pets", "Dogs" represents the "Pets & + Animals/Pets/Dogs" category. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.TopicInfo) + )) +_sym_db.RegisterMessage(TopicInfo) + +LanguageInfo = _reflection.GeneratedProtocolMessageType('LanguageInfo', (_message.Message,), dict( + DESCRIPTOR = _LANGUAGEINFO, + __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + , + __doc__ = """A language criterion. + + + Attributes: + language_constant: + The language constant resource name. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.LanguageInfo) + )) +_sym_db.RegisterMessage(LanguageInfo) + +IpBlockInfo = _reflection.GeneratedProtocolMessageType('IpBlockInfo', (_message.Message,), dict( + DESCRIPTOR = _IPBLOCKINFO, + __module__ = 'google.ads.googleads_v1.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 + addresses (192.168.0.1/32) - masks for Class C networks (192.168.0.1/24) + + + Attributes: + ip_address: + The IP address of this IP block. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.IpBlockInfo) + )) +_sym_db.RegisterMessage(IpBlockInfo) + +ContentLabelInfo = _reflection.GeneratedProtocolMessageType('ContentLabelInfo', (_message.Message,), dict( + DESCRIPTOR = _CONTENTLABELINFO, + __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + , + __doc__ = """Content Label for category exclusion. + + + Attributes: + type: + Content label type, required for CREATE operations. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.ContentLabelInfo) + )) +_sym_db.RegisterMessage(ContentLabelInfo) + +CarrierInfo = _reflection.GeneratedProtocolMessageType('CarrierInfo', (_message.Message,), dict( + DESCRIPTOR = _CARRIERINFO, + __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + , + __doc__ = """Represents a Carrier Criterion. + + + Attributes: + carrier_constant: + The Carrier constant resource name. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.CarrierInfo) + )) +_sym_db.RegisterMessage(CarrierInfo) + +UserInterestInfo = _reflection.GeneratedProtocolMessageType('UserInterestInfo', (_message.Message,), dict( + DESCRIPTOR = _USERINTERESTINFO, + __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + , + __doc__ = """Represents a particular interest-based topic to be targeted. + + + Attributes: + user_interest_category: + The UserInterest resource name. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.UserInterestInfo) + )) +_sym_db.RegisterMessage(UserInterestInfo) + +WebpageInfo = _reflection.GeneratedProtocolMessageType('WebpageInfo', (_message.Message,), dict( + DESCRIPTOR = _WEBPAGEINFO, + __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + , + __doc__ = """Represents a criterion for targeting webpages of an advertiser's + website. + + + Attributes: + criterion_name: + The name of the criterion that is defined by this parameter. + The name value will be used for identifying, sorting and + filtering criteria with this type of parameters. This field + is required for CREATE operations and is prohibited on UPDATE + operations. + conditions: + Conditions, or logical expressions, for webpage targeting. The + list of webpage targeting conditions are and-ed together when + 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) + )) +_sym_db.RegisterMessage(WebpageInfo) + +WebpageConditionInfo = _reflection.GeneratedProtocolMessageType('WebpageConditionInfo', (_message.Message,), dict( + DESCRIPTOR = _WEBPAGECONDITIONINFO, + __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + , + __doc__ = """Logical expression for targeting webpages of an advertiser's website. + + + Attributes: + operand: + Operand of webpage targeting condition. + operator: + Operator of webpage targeting condition. + argument: + Argument of webpage targeting condition. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.WebpageConditionInfo) + )) +_sym_db.RegisterMessage(WebpageConditionInfo) + +OperatingSystemVersionInfo = _reflection.GeneratedProtocolMessageType('OperatingSystemVersionInfo', (_message.Message,), dict( + DESCRIPTOR = _OPERATINGSYSTEMVERSIONINFO, + __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + , + __doc__ = """Represents an operating system version to be targeted. + + + Attributes: + operating_system_version_constant: + The operating system version constant resource name. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.OperatingSystemVersionInfo) + )) +_sym_db.RegisterMessage(OperatingSystemVersionInfo) + +AppPaymentModelInfo = _reflection.GeneratedProtocolMessageType('AppPaymentModelInfo', (_message.Message,), dict( + DESCRIPTOR = _APPPAYMENTMODELINFO, + __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + , + __doc__ = """An app payment model criterion. + + + Attributes: + type: + Type of the app payment model. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.AppPaymentModelInfo) + )) +_sym_db.RegisterMessage(AppPaymentModelInfo) + +MobileDeviceInfo = _reflection.GeneratedProtocolMessageType('MobileDeviceInfo', (_message.Message,), dict( + DESCRIPTOR = _MOBILEDEVICEINFO, + __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + , + __doc__ = """A mobile device criterion. + + + Attributes: + mobile_device_constant: + The mobile device constant resource name. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.MobileDeviceInfo) + )) +_sym_db.RegisterMessage(MobileDeviceInfo) + +CustomAffinityInfo = _reflection.GeneratedProtocolMessageType('CustomAffinityInfo', (_message.Message,), dict( + DESCRIPTOR = _CUSTOMAFFINITYINFO, + __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + , + __doc__ = """A custom affinity criterion. A criterion of this type is only + targetable. + + + Attributes: + custom_affinity: + The CustomInterest resource name. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.CustomAffinityInfo) + )) +_sym_db.RegisterMessage(CustomAffinityInfo) + +CustomIntentInfo = _reflection.GeneratedProtocolMessageType('CustomIntentInfo', (_message.Message,), dict( + DESCRIPTOR = _CUSTOMINTENTINFO, + __module__ = 'google.ads.googleads_v1.proto.common.criteria_pb2' + , + __doc__ = """A custom intent criterion. A criterion of this type is only targetable. + + + Attributes: + custom_intent: + The CustomInterest resource name. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.CustomIntentInfo) + )) +_sym_db.RegisterMessage(CustomIntentInfo) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/common/criteria_pb2_grpc.py b/google/ads/google_ads/v1/proto/common/criteria_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/common/criteria_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/common/criterion_category_availability_pb2.py b/google/ads/google_ads/v1/proto/common/criterion_category_availability_pb2.py new file mode 100644 index 000000000..4837bb576 --- /dev/null +++ b/google/ads/google_ads/v1/proto/common/criterion_category_availability_pb2.py @@ -0,0 +1,258 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/common/criterion_category_availability.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _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 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.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', + 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') + , + 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,]) + + + + +_CRITERIONCATEGORYAVAILABILITY = _descriptor.Descriptor( + name='CriterionCategoryAvailability', + full_name='google.ads.googleads.v1.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, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + 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=488, + serialized_end=691, +) + + +_CRITERIONCATEGORYCHANNELAVAILABILITY = _descriptor.Descriptor( + name='CriterionCategoryChannelAvailability', + full_name='google.ads.googleads.v1.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, + 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, + 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, + 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, + 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=694, + serialized_end=1190, +) + + +_CRITERIONCATEGORYLOCALEAVAILABILITY = _descriptor.Descriptor( + name='CriterionCategoryLocaleAvailability', + full_name='google.ads.googleads.v1.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, + 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, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1193, + serialized_end=1479, +) + +_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['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['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 +DESCRIPTOR.message_types_by_name['CriterionCategoryChannelAvailability'] = _CRITERIONCATEGORYCHANNELAVAILABILITY +DESCRIPTOR.message_types_by_name['CriterionCategoryLocaleAvailability'] = _CRITERIONCATEGORYLOCALEAVAILABILITY +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +CriterionCategoryAvailability = _reflection.GeneratedProtocolMessageType('CriterionCategoryAvailability', (_message.Message,), dict( + DESCRIPTOR = _CRITERIONCATEGORYAVAILABILITY, + __module__ = 'google.ads.googleads_v1.proto.common.criterion_category_availability_pb2' + , + __doc__ = """Information of category availability, per advertising channel. + + + Attributes: + channel: + Channel types and subtypes that are available to the category. + locale: + Locales that are available to the category for the channel. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.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' + , + __doc__ = """Information of advertising channel type and subtypes a category is + available in. + + + Attributes: + availability_mode: + Format of the channel availability. Can be ALL\_CHANNELS (the + rest of the fields will not be set), CHANNEL\_TYPE (only + advertising\_channel\_type type will be set, the category is + available to all sub types under it) or + CHANNEL\_TYPE\_AND\_SUBTYPES (advertising\_channel\_type, + advertising\_channel\_sub\_type, and + include\_default\_channel\_sub\_type will all be set). + advertising_channel_type: + Channel type the category is available to. + advertising_channel_sub_type: + Channel subtypes under the channel type the category is + available to. + include_default_channel_sub_type: + Whether default channel sub type is included. For example, + advertising\_channel\_type being DISPLAY and + include\_default\_channel\_sub\_type being false means that + 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) + )) +_sym_db.RegisterMessage(CriterionCategoryChannelAvailability) + +CriterionCategoryLocaleAvailability = _reflection.GeneratedProtocolMessageType('CriterionCategoryLocaleAvailability', (_message.Message,), dict( + DESCRIPTOR = _CRITERIONCATEGORYLOCALEAVAILABILITY, + __module__ = 'google.ads.googleads_v1.proto.common.criterion_category_availability_pb2' + , + __doc__ = """Information about which locales a category is available in. + + + Attributes: + availability_mode: + Format of the locale availability. Can be LAUNCHED\_TO\_ALL + (both country and language will be empty), COUNTRY (only + country will be set), LANGUAGE (only language wil be set), + COUNTRY\_AND\_LANGUAGE (both country and language will be + set). + country_code: + Code of the country. + language_code: + Code of the language. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.CriterionCategoryLocaleAvailability) + )) +_sym_db.RegisterMessage(CriterionCategoryLocaleAvailability) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/common/criterion_category_availability_pb2_grpc.py b/google/ads/google_ads/v1/proto/common/criterion_category_availability_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/common/criterion_category_availability_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/common/custom_parameter_pb2.py b/google/ads/google_ads/v1/proto/common/custom_parameter_pb2.py new file mode 100644 index 000000000..71bd50c5f --- /dev/null +++ b/google/ads/google_ads/v1/proto/common/custom_parameter_pb2.py @@ -0,0 +1,93 @@ +# 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/custom_parameter_pb2_grpc.py b/google/ads/google_ads/v1/proto/common/custom_parameter_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/common/custom_parameter_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/common/dates_pb2.py b/google/ads/google_ads/v1/proto/common/dates_pb2.py new file mode 100644 index 000000000..59b011122 --- /dev/null +++ b/google/ads/google_ads/v1/proto/common/dates_pb2.py @@ -0,0 +1,92 @@ +# 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/dates_pb2_grpc.py b/google/ads/google_ads/v1/proto/common/dates_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/common/dates_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/common/explorer_auto_optimizer_setting_pb2.py b/google/ads/google_ads/v1/proto/common/explorer_auto_optimizer_setting_pb2.py new file mode 100644 index 000000000..a3bef0958 --- /dev/null +++ b/google/ads/google_ads/v1/proto/common/explorer_auto_optimizer_setting_pb2.py @@ -0,0 +1,83 @@ +# 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/explorer_auto_optimizer_setting_pb2_grpc.py b/google/ads/google_ads/v1/proto/common/explorer_auto_optimizer_setting_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/common/explorer_auto_optimizer_setting_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/common/extensions_pb2.py b/google/ads/google_ads/v1/proto/common/extensions_pb2.py new file mode 100644 index 000000000..3dc42f9e9 --- /dev/null +++ b/google/ads/google_ads/v1/proto/common/extensions_pb2.py @@ -0,0 +1,1032 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/common/extensions.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _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.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.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', + 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\"\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') + , + 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,]) + + + + +_APPFEEDITEM = _descriptor.Descriptor( + name='AppFeedItem', + full_name='google.ads.googleads.v1.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, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + 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, + 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, + 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, + 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, + 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, + 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=759, + serialized_end=1244, +) + + +_CALLFEEDITEM = _descriptor.Descriptor( + name='CallFeedItem', + full_name='google.ads.googleads.v1.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, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + 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, + 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, + 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=1247, + serialized_end=1693, +) + + +_CALLOUTFEEDITEM = _descriptor.Descriptor( + name='CalloutFeedItem', + full_name='google.ads.googleads.v1.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, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1695, + serialized_end=1764, +) + + +_TEXTMESSAGEFEEDITEM = _descriptor.Descriptor( + name='TextMessageFeedItem', + full_name='google.ads.googleads.v1.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, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + 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, + 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=1767, + serialized_end=2043, +) + + +_PRICEFEEDITEM = _descriptor.Descriptor( + name='PriceFeedItem', + full_name='google.ads.googleads.v1.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, + 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, + 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, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + 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, + 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, + 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=2046, + serialized_end=2507, +) + + +_PRICEOFFER = _descriptor.Descriptor( + name='PriceOffer', + full_name='google.ads.googleads.v1.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, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + 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, + 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, + 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=2510, + serialized_end=2878, +) + + +_PROMOTIONFEEDITEM = _descriptor.Descriptor( + name='PromotionFeedItem', + full_name='google.ads.googleads.v1.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, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + 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, + 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, + 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, + 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, + 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, + 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, + 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, + 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, + 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, + 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, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + 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, + 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, + 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='discount_type', full_name='google.ads.googleads.v1.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', + index=1, containing_type=None, fields=[]), + ], + serialized_start=2881, + serialized_end=3955, +) + + +_STRUCTUREDSNIPPETFEEDITEM = _descriptor.Descriptor( + name='StructuredSnippetFeedItem', + full_name='google.ads.googleads.v1.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, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + 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=3957, + serialized_end=4076, +) + + +_SITELINKFEEDITEM = _descriptor.Descriptor( + name='SitelinkFeedItem', + full_name='google.ads.googleads.v1.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, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + 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, + 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, + 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, + 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, + 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=4079, + serialized_end=4540, +) + +_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['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['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 +_CALLOUTFEEDITEM.fields_by_name['callout_text'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_TEXTMESSAGEFEEDITEM.fields_by_name['business_name'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_TEXTMESSAGEFEEDITEM.fields_by_name['country_code'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_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['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['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['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['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['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['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.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'] +_PROMOTIONFEEDITEM.oneofs_by_name['discount_type'].fields.append( + _PROMOTIONFEEDITEM.fields_by_name['money_amount_off']) +_PROMOTIONFEEDITEM.fields_by_name['money_amount_off'].containing_oneof = _PROMOTIONFEEDITEM.oneofs_by_name['discount_type'] +_PROMOTIONFEEDITEM.oneofs_by_name['promotion_trigger'].fields.append( + _PROMOTIONFEEDITEM.fields_by_name['promotion_code']) +_PROMOTIONFEEDITEM.fields_by_name['promotion_code'].containing_oneof = _PROMOTIONFEEDITEM.oneofs_by_name['promotion_trigger'] +_PROMOTIONFEEDITEM.oneofs_by_name['promotion_trigger'].fields.append( + _PROMOTIONFEEDITEM.fields_by_name['orders_over_amount']) +_PROMOTIONFEEDITEM.fields_by_name['orders_over_amount'].containing_oneof = _PROMOTIONFEEDITEM.oneofs_by_name['promotion_trigger'] +_STRUCTUREDSNIPPETFEEDITEM.fields_by_name['header'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_STRUCTUREDSNIPPETFEEDITEM.fields_by_name['values'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SITELINKFEEDITEM.fields_by_name['link_text'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SITELINKFEEDITEM.fields_by_name['line1'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_SITELINKFEEDITEM.fields_by_name['line2'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_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['final_url_suffix'].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 +DESCRIPTOR.message_types_by_name['TextMessageFeedItem'] = _TEXTMESSAGEFEEDITEM +DESCRIPTOR.message_types_by_name['PriceFeedItem'] = _PRICEFEEDITEM +DESCRIPTOR.message_types_by_name['PriceOffer'] = _PRICEOFFER +DESCRIPTOR.message_types_by_name['PromotionFeedItem'] = _PROMOTIONFEEDITEM +DESCRIPTOR.message_types_by_name['StructuredSnippetFeedItem'] = _STRUCTUREDSNIPPETFEEDITEM +DESCRIPTOR.message_types_by_name['SitelinkFeedItem'] = _SITELINKFEEDITEM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +AppFeedItem = _reflection.GeneratedProtocolMessageType('AppFeedItem', (_message.Message,), dict( + DESCRIPTOR = _APPFEEDITEM, + __module__ = 'google.ads.googleads_v1.proto.common.extensions_pb2' + , + __doc__ = """Represents an App extension. + + + Attributes: + link_text: + The visible text displayed when the link is rendered in an ad. + The length of this string should be between 1 and 25, + inclusive. + app_id: + The store-specific ID for the target application. This string + must not be empty. + app_store: + The application store that the target application belongs to. + final_urls: + A list of possible final URLs after all cross domain + redirects. + final_mobile_urls: + A list of possible final mobile URLs after all cross domain + redirects. + tracking_url_template: + URL template for constructing a tracking URL. Default value is + "{lpurl}". + url_custom_parameters: + A list of mappings to be used for substituting URL custom + parameter tags in the tracking\_url\_template, final\_urls, + and/or final\_mobile\_urls. + final_url_suffix: + URL template for appending params to landing page URLs served + with parallel tracking. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.AppFeedItem) + )) +_sym_db.RegisterMessage(AppFeedItem) + +CallFeedItem = _reflection.GeneratedProtocolMessageType('CallFeedItem', (_message.Message,), dict( + DESCRIPTOR = _CALLFEEDITEM, + __module__ = 'google.ads.googleads_v1.proto.common.extensions_pb2' + , + __doc__ = """Represents a Call extension. + + + Attributes: + phone_number: + The advertiser's phone number to append to the ad. This string + must not be empty. + country_code: + Uppercase two-letter country code of the advertiser's phone + number. This string must not be empty. + call_tracking_enabled: + Indicates whether call tracking is enabled. By default, call + tracking is not enabled. + call_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\_tracking\_enabled is set to true. + Otherwise this field is ignored. + call_conversion_tracking_disabled: + If true, disable call conversion tracking. + call\_conversion\_action should not be set if this is true. + Optional. + call_conversion_reporting_state: + Enum value that indicates whether this call extension uses its + 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) + )) +_sym_db.RegisterMessage(CallFeedItem) + +CalloutFeedItem = _reflection.GeneratedProtocolMessageType('CalloutFeedItem', (_message.Message,), dict( + DESCRIPTOR = _CALLOUTFEEDITEM, + __module__ = 'google.ads.googleads_v1.proto.common.extensions_pb2' + , + __doc__ = """Represents a callout extension. + + + Attributes: + callout_text: + 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) + )) +_sym_db.RegisterMessage(CalloutFeedItem) + +TextMessageFeedItem = _reflection.GeneratedProtocolMessageType('TextMessageFeedItem', (_message.Message,), dict( + DESCRIPTOR = _TEXTMESSAGEFEEDITEM, + __module__ = 'google.ads.googleads_v1.proto.common.extensions_pb2' + , + __doc__ = """An extension that users can click on to send a text message to the + advertiser. + + + Attributes: + business_name: + The business name to prepend to the message text. This field + is required. + country_code: + Uppercase two-letter country code of the advertiser's phone + number. This field is required. + phone_number: + The advertiser's phone number the message will be sent to. + Required. + text: + The text to show in the ad. This field is required. + extension_text: + The message text populated in the messaging app. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.TextMessageFeedItem) + )) +_sym_db.RegisterMessage(TextMessageFeedItem) + +PriceFeedItem = _reflection.GeneratedProtocolMessageType('PriceFeedItem', (_message.Message,), dict( + DESCRIPTOR = _PRICEFEEDITEM, + __module__ = 'google.ads.googleads_v1.proto.common.extensions_pb2' + , + __doc__ = """Represents a Price extension. + + + Attributes: + type: + Price extension type of this extension. + price_qualifier: + Price qualifier for all offers of this price extension. + tracking_url_template: + Tracking URL template for all offers of this price extension. + language_code: + The code of the language used for this price extension. + price_offerings: + The price offerings in this price extension. + final_url_suffix: + URL template for appending params to landing page URLs served + with parallel tracking. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.PriceFeedItem) + )) +_sym_db.RegisterMessage(PriceFeedItem) + +PriceOffer = _reflection.GeneratedProtocolMessageType('PriceOffer', (_message.Message,), dict( + DESCRIPTOR = _PRICEOFFER, + __module__ = 'google.ads.googleads_v1.proto.common.extensions_pb2' + , + __doc__ = """Represents one price offer in a price extension. + + + Attributes: + header: + Header text of this offer. + description: + Description text of this offer. + price: + Price value of this offer. + unit: + Price unit for this offer. + final_urls: + A list of possible final URLs after all cross domain + redirects. + final_mobile_urls: + A list of possible final mobile URLs after all cross domain + redirects. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.PriceOffer) + )) +_sym_db.RegisterMessage(PriceOffer) + +PromotionFeedItem = _reflection.GeneratedProtocolMessageType('PromotionFeedItem', (_message.Message,), dict( + DESCRIPTOR = _PROMOTIONFEEDITEM, + __module__ = 'google.ads.googleads_v1.proto.common.extensions_pb2' + , + __doc__ = """Represents a Promotion extension. + + + Attributes: + promotion_target: + A freeform description of what the promotion is targeting. + This field is required. + discount_modifier: + Enum that modifies the qualification of the discount. + promotion_start_date: + Start date of when the promotion is eligible to be redeemed. + This field is currently mutate only. + promotion_end_date: + End date of when the promotion is eligible to be redeemed. + This field is currently mutate only. + occasion: + The occasion the promotion was intended for. If an occasion is + set, the redemption window will need to fall within the date + range associated with the occasion. + final_urls: + A list of possible final URLs after all cross domain + redirects. This field is required. + final_mobile_urls: + A list of possible final mobile URLs after all cross domain + redirects. + tracking_url_template: + URL template for constructing a tracking URL. + url_custom_parameters: + A list of mappings to be used for substituting URL custom + parameter tags in the tracking\_url\_template, final\_urls, + and/or final\_mobile\_urls. + final_url_suffix: + URL template for appending params to landing page URLs served + with parallel tracking. + language_code: + The language of the promotion. Represented as BCP 47 language + tag. + discount_type: + Discount type, can be percentage off or amount off. + percent_off: + Percentage off discount in the promotion in micros. One + million is equivalent to one percent. Either this or + money\_off\_amount is required. + money_amount_off: + Money amount off for discount in the promotion. Either this or + percent\_off is required. + promotion_trigger: + Promotion trigger. Can be by promotion code or promo by + eligible order amount. + promotion_code: + A code the user should use in order to be eligible for the + promotion. + orders_over_amount: + 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) + )) +_sym_db.RegisterMessage(PromotionFeedItem) + +StructuredSnippetFeedItem = _reflection.GeneratedProtocolMessageType('StructuredSnippetFeedItem', (_message.Message,), dict( + DESCRIPTOR = _STRUCTUREDSNIPPETFEEDITEM, + __module__ = 'google.ads.googleads_v1.proto.common.extensions_pb2' + , + __doc__ = """Represents a structured snippet extension. + + + Attributes: + header: + The header of the snippet. This string must not be empty. + values: + The values in the snippet. The maximum size of this collection + is 10. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.StructuredSnippetFeedItem) + )) +_sym_db.RegisterMessage(StructuredSnippetFeedItem) + +SitelinkFeedItem = _reflection.GeneratedProtocolMessageType('SitelinkFeedItem', (_message.Message,), dict( + DESCRIPTOR = _SITELINKFEEDITEM, + __module__ = 'google.ads.googleads_v1.proto.common.extensions_pb2' + , + __doc__ = """Represents a sitelink extension. + + + Attributes: + link_text: + URL display text for the sitelink. The length of this string + should be between 1 and 25, inclusive. + line1: + First line of the description for the sitelink. If this value + is set, line2 must also be set. The length of this string + should be between 0 and 35, inclusive. + line2: + Second line of the description for the sitelink. If this value + is set, line1 must also be set. The length of this string + should be between 0 and 35, inclusive. + final_urls: + A list of possible final URLs after all cross domain + redirects. + final_mobile_urls: + A list of possible final mobile URLs after all cross domain + redirects. + tracking_url_template: + URL template for constructing a tracking URL. + url_custom_parameters: + A list of mappings to be used for substituting URL custom + parameter tags in the tracking\_url\_template, final\_urls, + and/or final\_mobile\_urls. + final_url_suffix: + 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) + )) +_sym_db.RegisterMessage(SitelinkFeedItem) + + +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/v1/proto/common/extensions_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/common/extensions_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/common/feed_common_pb2.py b/google/ads/google_ads/v1/proto/common/feed_common_pb2.py new file mode 100644 index 000000000..f73cbf7ba --- /dev/null +++ b/google/ads/google_ads/v1/proto/common/feed_common_pb2.py @@ -0,0 +1,92 @@ +# 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/feed_common_pb2_grpc.py b/google/ads/google_ads/v1/proto/common/feed_common_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/common/feed_common_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/common/frequency_cap_pb2.py b/google/ads/google_ads/v1/proto/common/frequency_cap_pb2.py new file mode 100644 index 000000000..7c4ce44b6 --- /dev/null +++ b/google/ads/google_ads/v1/proto/common/frequency_cap_pb2.py @@ -0,0 +1,179 @@ +# 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/frequency_cap_pb2_grpc.py b/google/ads/google_ads/v1/proto/common/frequency_cap_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/common/frequency_cap_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/common/keyword_plan_common_pb2.py b/google/ads/google_ads/v1/proto/common/keyword_plan_common_pb2.py new file mode 100644 index 000000000..31ccd8e98 --- /dev/null +++ b/google/ads/google_ads/v1/proto/common/keyword_plan_common_pb2.py @@ -0,0 +1,93 @@ +# 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/keyword_plan_common_pb2_grpc.py b/google/ads/google_ads/v1/proto/common/keyword_plan_common_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/common/keyword_plan_common_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/common/matching_function_pb2.py b/google/ads/google_ads/v1/proto/common/matching_function_pb2.py new file mode 100644 index 000000000..4ffe4a514 --- /dev/null +++ b/google/ads/google_ads/v1/proto/common/matching_function_pb2.py @@ -0,0 +1,478 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/common/matching_function.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _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 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.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', + 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') + , + 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,]) + + + + +_MATCHINGFUNCTION = _descriptor.Descriptor( + name='MatchingFunction', + full_name='google.ads.googleads.v1.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, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + 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, + 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, + 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=303, + serialized_end=609, +) + + +_OPERAND_CONSTANTOPERAND = _descriptor.Descriptor( + name='ConstantOperand', + full_name='google.ads.googleads.v1.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, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + 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=[ + _descriptor.OneofDescriptor( + name='constant_operand_value', full_name='google.ads.googleads.v1.common.Operand.ConstantOperand.constant_operand_value', + index=0, containing_type=None, fields=[]), + ], + serialized_start=988, + serialized_end=1243, +) + +_OPERAND_FEEDATTRIBUTEOPERAND = _descriptor.Descriptor( + name='FeedAttributeOperand', + full_name='google.ads.googleads.v1.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, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1245, + serialized_end=1369, +) + +_OPERAND_FUNCTIONOPERAND = _descriptor.Descriptor( + name='FunctionOperand', + full_name='google.ads.googleads.v1.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, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=1371, + serialized_end=1465, +) + +_OPERAND_REQUESTCONTEXTOPERAND = _descriptor.Descriptor( + name='RequestContextOperand', + full_name='google.ads.googleads.v1.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, + 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=1468, + serialized_end=1605, +) + +_OPERAND = _descriptor.Descriptor( + name='Operand', + full_name='google.ads.googleads.v1.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, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + 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=[_OPERAND_CONSTANTOPERAND, _OPERAND_FEEDATTRIBUTEOPERAND, _OPERAND_FUNCTIONOPERAND, _OPERAND_REQUESTCONTEXTOPERAND, ], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='function_argument_operand', full_name='google.ads.googleads.v1.common.Operand.function_argument_operand', + index=0, containing_type=None, fields=[]), + ], + serialized_start=612, + serialized_end=1634, +) + +_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['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 +_OPERAND_CONSTANTOPERAND.fields_by_name['long_value'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_OPERAND_CONSTANTOPERAND.fields_by_name['boolean_value'].message_type = google_dot_protobuf_dot_wrappers__pb2._BOOLVALUE +_OPERAND_CONSTANTOPERAND.fields_by_name['double_value'].message_type = google_dot_protobuf_dot_wrappers__pb2._DOUBLEVALUE +_OPERAND_CONSTANTOPERAND.containing_type = _OPERAND +_OPERAND_CONSTANTOPERAND.oneofs_by_name['constant_operand_value'].fields.append( + _OPERAND_CONSTANTOPERAND.fields_by_name['string_value']) +_OPERAND_CONSTANTOPERAND.fields_by_name['string_value'].containing_oneof = _OPERAND_CONSTANTOPERAND.oneofs_by_name['constant_operand_value'] +_OPERAND_CONSTANTOPERAND.oneofs_by_name['constant_operand_value'].fields.append( + _OPERAND_CONSTANTOPERAND.fields_by_name['long_value']) +_OPERAND_CONSTANTOPERAND.fields_by_name['long_value'].containing_oneof = _OPERAND_CONSTANTOPERAND.oneofs_by_name['constant_operand_value'] +_OPERAND_CONSTANTOPERAND.oneofs_by_name['constant_operand_value'].fields.append( + _OPERAND_CONSTANTOPERAND.fields_by_name['boolean_value']) +_OPERAND_CONSTANTOPERAND.fields_by_name['boolean_value'].containing_oneof = _OPERAND_CONSTANTOPERAND.oneofs_by_name['constant_operand_value'] +_OPERAND_CONSTANTOPERAND.oneofs_by_name['constant_operand_value'].fields.append( + _OPERAND_CONSTANTOPERAND.fields_by_name['double_value']) +_OPERAND_CONSTANTOPERAND.fields_by_name['double_value'].containing_oneof = _OPERAND_CONSTANTOPERAND.oneofs_by_name['constant_operand_value'] +_OPERAND_FEEDATTRIBUTEOPERAND.fields_by_name['feed_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_OPERAND_FEEDATTRIBUTEOPERAND.fields_by_name['feed_attribute_id'].message_type = google_dot_protobuf_dot_wrappers__pb2._INT64VALUE +_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.containing_type = _OPERAND +_OPERAND.fields_by_name['constant_operand'].message_type = _OPERAND_CONSTANTOPERAND +_OPERAND.fields_by_name['feed_attribute_operand'].message_type = _OPERAND_FEEDATTRIBUTEOPERAND +_OPERAND.fields_by_name['function_operand'].message_type = _OPERAND_FUNCTIONOPERAND +_OPERAND.fields_by_name['request_context_operand'].message_type = _OPERAND_REQUESTCONTEXTOPERAND +_OPERAND.oneofs_by_name['function_argument_operand'].fields.append( + _OPERAND.fields_by_name['constant_operand']) +_OPERAND.fields_by_name['constant_operand'].containing_oneof = _OPERAND.oneofs_by_name['function_argument_operand'] +_OPERAND.oneofs_by_name['function_argument_operand'].fields.append( + _OPERAND.fields_by_name['feed_attribute_operand']) +_OPERAND.fields_by_name['feed_attribute_operand'].containing_oneof = _OPERAND.oneofs_by_name['function_argument_operand'] +_OPERAND.oneofs_by_name['function_argument_operand'].fields.append( + _OPERAND.fields_by_name['function_operand']) +_OPERAND.fields_by_name['function_operand'].containing_oneof = _OPERAND.oneofs_by_name['function_argument_operand'] +_OPERAND.oneofs_by_name['function_argument_operand'].fields.append( + _OPERAND.fields_by_name['request_context_operand']) +_OPERAND.fields_by_name['request_context_operand'].containing_oneof = _OPERAND.oneofs_by_name['function_argument_operand'] +DESCRIPTOR.message_types_by_name['MatchingFunction'] = _MATCHINGFUNCTION +DESCRIPTOR.message_types_by_name['Operand'] = _OPERAND +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +MatchingFunction = _reflection.GeneratedProtocolMessageType('MatchingFunction', (_message.Message,), dict( + DESCRIPTOR = _MATCHINGFUNCTION, + __module__ = 'google.ads.googleads_v1.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 + items selected. + + + 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) + 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. + operator: + Operator for a function. + left_operands: + The operands on the left hand side of the equation. This is + also the operand to be used for single operand expressions + such as NOT. + right_operands: + The operands on the right hand side of the equation. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.MatchingFunction) + )) +_sym_db.RegisterMessage(MatchingFunction) + +Operand = _reflection.GeneratedProtocolMessageType('Operand', (_message.Message,), dict( + + ConstantOperand = _reflection.GeneratedProtocolMessageType('ConstantOperand', (_message.Message,), dict( + DESCRIPTOR = _OPERAND_CONSTANTOPERAND, + __module__ = 'google.ads.googleads_v1.proto.common.matching_function_pb2' + , + __doc__ = """A constant operand in a matching function. + + + Attributes: + constant_operand_value: + Constant operand values. Required. + string_value: + String value of the operand if it is a string type. + long_value: + Int64 value of the operand if it is a int64 type. + boolean_value: + Boolean value of the operand if it is a boolean type. + 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) + )) + , + + FeedAttributeOperand = _reflection.GeneratedProtocolMessageType('FeedAttributeOperand', (_message.Message,), dict( + DESCRIPTOR = _OPERAND_FEEDATTRIBUTEOPERAND, + __module__ = 'google.ads.googleads_v1.proto.common.matching_function_pb2' + , + __doc__ = """A feed attribute operand in a matching function. Used to represent a + feed attribute in feed. + + + Attributes: + feed_id: + The associated feed. Required. + feed_attribute_id: + Id of the referenced feed attribute. Required. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.Operand.FeedAttributeOperand) + )) + , + + FunctionOperand = _reflection.GeneratedProtocolMessageType('FunctionOperand', (_message.Message,), dict( + DESCRIPTOR = _OPERAND_FUNCTIONOPERAND, + __module__ = 'google.ads.googleads_v1.proto.common.matching_function_pb2' + , + __doc__ = """A function operand in a matching function. Used to represent nested + functions. + + + Attributes: + matching_function: + The matching function held in this operand. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.Operand.FunctionOperand) + )) + , + + RequestContextOperand = _reflection.GeneratedProtocolMessageType('RequestContextOperand', (_message.Message,), dict( + DESCRIPTOR = _OPERAND_REQUESTCONTEXTOPERAND, + __module__ = 'google.ads.googleads_v1.proto.common.matching_function_pb2' + , + __doc__ = """An operand in a function referring to a value in the request context. + + + Attributes: + context_type: + Type of value to be referred in the request context. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.Operand.RequestContextOperand) + )) + , + DESCRIPTOR = _OPERAND, + __module__ = 'google.ads.googleads_v1.proto.common.matching_function_pb2' + , + __doc__ = """An operand in a matching function. + + + Attributes: + function_argument_operand: + Different operands that can be used in a matching function. + Required. + constant_operand: + A constant operand in a matching function. + feed_attribute_operand: + This operand specifies a feed attribute in feed. + function_operand: + A function operand in a matching function. Used to represent + nested functions. + request_context_operand: + An operand in a function referring to a value in the request + context. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.Operand) + )) +_sym_db.RegisterMessage(Operand) +_sym_db.RegisterMessage(Operand.ConstantOperand) +_sym_db.RegisterMessage(Operand.FeedAttributeOperand) +_sym_db.RegisterMessage(Operand.FunctionOperand) +_sym_db.RegisterMessage(Operand.RequestContextOperand) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/common/matching_function_pb2_grpc.py b/google/ads/google_ads/v1/proto/common/matching_function_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/common/matching_function_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/common/metrics_pb2.py b/google/ads/google_ads/v1/proto/common/metrics_pb2.py new file mode 100644 index 000000000..9c667deee --- /dev/null +++ b/google/ads/google_ads/v1/proto/common/metrics_pb2.py @@ -0,0 +1,1143 @@ +# 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\"\xd2/\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\x12]\n7all_conversions_from_interactions_value_per_interaction\x18\x43 \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\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\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\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?\n\x19top_impression_percentage\x18] \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_interactions_value_per_interaction', full_name='google.ads.googleads.v1.common.Metrics.all_conversions_from_interactions_value_per_interaction', index=12, + 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='average_cost', full_name='google.ads.googleads.v1.common.Metrics.average_cost', 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='average_cpc', full_name='google.ads.googleads.v1.common.Metrics.average_cpc', 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='average_cpe', full_name='google.ads.googleads.v1.common.Metrics.average_cpe', index=15, + 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=16, + 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=17, + 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=18, + 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=19, + 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=20, + 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=21, + 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=22, + 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=23, + 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=24, + 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=25, + 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='content_budget_lost_impression_share', full_name='google.ads.googleads.v1.common.Metrics.content_budget_lost_impression_share', index=26, + 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=27, + 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=28, + 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=29, + 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=30, + 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=31, + 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=32, + 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=33, + 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=34, + 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=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='cost_micros', full_name='google.ads.googleads.v1.common.Metrics.cost_micros', index=36, + 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=37, + 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=38, + 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=39, + 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=40, + 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=41, + 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=42, + 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=43, + 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=44, + 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=45, + 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=46, + 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=47, + 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=48, + 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=49, + 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=50, + 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=51, + 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=52, + 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=53, + 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=54, + 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=55, + 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=56, + 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=57, + 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', full_name='google.ads.googleads.v1.common.Metrics.impressions', index=58, + 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=59, + 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=60, + 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=61, + 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=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='invalid_clicks', full_name='google.ads.googleads.v1.common.Metrics.invalid_clicks', 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='percent_new_visitors', full_name='google.ads.googleads.v1.common.Metrics.percent_new_visitors', 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='phone_calls', full_name='google.ads.googleads.v1.common.Metrics.phone_calls', 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='phone_impressions', full_name='google.ads.googleads.v1.common.Metrics.phone_impressions', 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='phone_through_rate', full_name='google.ads.googleads.v1.common.Metrics.phone_through_rate', 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='relative_ctr', full_name='google.ads.googleads.v1.common.Metrics.relative_ctr', 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='search_absolute_top_impression_share', full_name='google.ads.googleads.v1.common.Metrics.search_absolute_top_impression_share', index=69, + 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=70, + 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=71, + 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=72, + 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=73, + 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=74, + 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=75, + 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=76, + 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=77, + 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=78, + 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=79, + 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='top_impression_percentage', full_name='google.ads.googleads.v1.common.Metrics.top_impression_percentage', index=80, + 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='value_per_all_conversions', full_name='google.ads.googleads.v1.common.Metrics.value_per_all_conversions', index=81, + 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=82, + 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=83, + 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=84, + 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=85, + 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=86, + 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=87, + 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=88, + 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=89, + 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=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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=279, + serialized_end=6377, +) + +_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_interactions_value_per_interaction'].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['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'].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['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['top_impression_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_interactions_value_per_interaction: + The value of all conversions from interactions divided by the + total number of interactions. + 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. + 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: + 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. + 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. + top_impression_percentage: + The percent of your ad impressions that are shown anywhere + above the organic search results. + 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/metrics_pb2_grpc.py b/google/ads/google_ads/v1/proto/common/metrics_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/common/metrics_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/common/policy_pb2.py b/google/ads/google_ads/v1/proto/common/policy_pb2.py new file mode 100644 index 000000000..cc46cc860 --- /dev/null +++ b/google/ads/google_ads/v1/proto/common/policy_pb2.py @@ -0,0 +1,828 @@ +# 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.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\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\"Z\n\x19PolicyValidationParameter\x12=\n\x17ignorable_policy_topics\x18\x01 \x03(\x0b\x32\x1c.google.protobuf.StringValue\"\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\"\xfa\x06\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\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.PolicyTopicEvidenceDestinationMismatchUrlTypeB\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_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=309, + serialized_end=434, +) + + +_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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=436, + serialized_end=526, +) + + +_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=529, + serialized_end=832, +) + + +_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=1346, + serialized_end=1401, +) + +_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=1403, + serialized_end=1464, +) + +_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=1466, + serialized_end=1544, +) + +_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=1547, + serialized_end=1716, +) + +_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), + ], + extensions=[ + ], + nested_types=[_POLICYTOPICEVIDENCE_TEXTLIST, _POLICYTOPICEVIDENCE_WEBSITELIST, _POLICYTOPICEVIDENCE_DESTINATIONTEXTLIST, _POLICYTOPICEVIDENCE_DESTINATIONMISMATCH, ], + 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=835, + serialized_end=1725, +) + + +_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=2228, + serialized_end=2406, +) + +_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=2408, + serialized_end=2428, +) + +_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=2430, + serialized_end=2506, +) + +_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=1728, + serialized_end=2515, +) + +_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 +_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.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.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'] +_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. + """, + # @@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. + + Next tag: 5 + + + 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. + + Next Id: 2 + + + 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. + + Next Id: 2 + + + 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. + + Next Id: 2 + + + 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. + + Next Id: 2 + + + 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) + )) + , + DESCRIPTOR = _POLICYTOPICEVIDENCE, + __module__ = 'google.ads.googleads_v1.proto.common.policy_pb2' + , + __doc__ = """Additional information that explains a policy finding. + + Next Id: 8 + + + 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. + """, + # @@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) + +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. + + Next Id: 3 + + + 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. + + Next Id: 1 + """, + # @@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. + + Next Id: 2 + + + 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. + + Next Id: 5 + + + 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/policy_pb2_grpc.py b/google/ads/google_ads/v1/proto/common/policy_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/common/policy_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/common/real_time_bidding_setting_pb2.py b/google/ads/google_ads/v1/proto/common/real_time_bidding_setting_pb2.py new file mode 100644 index 000000000..403bb8f69 --- /dev/null +++ b/google/ads/google_ads/v1/proto/common/real_time_bidding_setting_pb2.py @@ -0,0 +1,83 @@ +# 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/real_time_bidding_setting_pb2_grpc.py b/google/ads/google_ads/v1/proto/common/real_time_bidding_setting_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/common/real_time_bidding_setting_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/common/segments_pb2.py b/google/ads/google_ads/v1/proto/common/segments_pb2.py new file mode 100644 index 000000000..b95df2bbb --- /dev/null +++ b/google/ads/google_ads/v1/proto/common/segments_pb2.py @@ -0,0 +1,809 @@ +# 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 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_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\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\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\"\xec\"\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\x35\n\x0fgeo_target_city\x18> \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x36\n\x10geo_target_metro\x18? \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12\x37\n\x11geo_target_region\x18@ \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\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\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\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_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__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_city', full_name='google.ads.googleads.v1.common.Segments.geo_target_city', index=13, + 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_metro', full_name='google.ads.googleads.v1.common.Segments.geo_target_metro', index=14, + 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_region', full_name='google.ads.googleads.v1.common.Segments.geo_target_region', index=15, + 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='hotel_booking_window_days', full_name='google.ads.googleads.v1.common.Segments.hotel_booking_window_days', index=16, + 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=17, + 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=18, + 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=19, + 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=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='hotel_class', full_name='google.ads.googleads.v1.common.Segments.hotel_class', 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='hotel_country', full_name='google.ads.googleads.v1.common.Segments.hotel_country', 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='hotel_date_selection_type', full_name='google.ads.googleads.v1.common.Segments.hotel_date_selection_type', index=23, + 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=24, + 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_state', full_name='google.ads.googleads.v1.common.Segments.hotel_state', index=25, + 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=26, + 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=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='keyword', full_name='google.ads.googleads.v1.common.Segments.keyword', index=28, + 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=29, + 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=30, + 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=31, + 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=32, + 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=33, + 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=34, + 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=35, + 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=36, + 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=37, + 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=38, + 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=39, + 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=40, + 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=41, + 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=42, + 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=43, + 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=44, + 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=45, + 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=46, + 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=47, + 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=48, + 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=49, + 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=50, + 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=51, + 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=52, + 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=53, + 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=54, + 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=55, + 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=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='product_type_l4', full_name='google.ads.googleads.v1.common.Segments.product_type_l4', index=57, + 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=58, + 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=59, + 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_term_match_type', full_name='google.ads.googleads.v1.common.Segments.search_term_match_type', index=60, + 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=61, + 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='week', full_name='google.ads.googleads.v1.common.Segments.week', index=62, + 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=63, + 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=1273, + serialized_end=5733, +) + + +_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=5735, + serialized_end=5861, +) + +_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_city'].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_region'].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_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_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['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_city: + Resource name of the geo target constant that represents a + city. + geo_target_metro: + Resource name of the geo target constant that represents a + metro. + geo_target_region: + Resource name of the geo target constant that represents a + region. + 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_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 + 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_term_match_type: + Match type of the keyword that triggered the ad, including + variants. + slot: + Position of the ad. + 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/segments_pb2_grpc.py b/google/ads/google_ads/v1/proto/common/segments_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/common/segments_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/common/simulation_pb2.py b/google/ads/google_ads/v1/proto/common/simulation_pb2.py new file mode 100644 index 000000000..4b5004670 --- /dev/null +++ b/google/ads/google_ads/v1/proto/common/simulation_pb2.py @@ -0,0 +1,191 @@ +# 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\"\x9a\x03\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.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, +) + + +_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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=262, + serialized_end=672, +) + +_BIDMODIFIERSIMULATIONPOINTLIST.fields_by_name['points'].message_type = _BIDMODIFIERSIMULATIONPOINT +_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 +DESCRIPTOR.message_types_by_name['BidModifierSimulationPointList'] = _BIDMODIFIERSIMULATIONPOINTLIST +DESCRIPTOR.message_types_by_name['BidModifierSimulationPoint'] = _BIDMODIFIERSIMULATIONPOINT +_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) + +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. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.BidModifierSimulationPoint) + )) +_sym_db.RegisterMessage(BidModifierSimulationPoint) + + +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/v1/proto/common/simulation_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/common/simulation_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/common/tag_snippet_pb2.py b/google/ads/google_ads/v1/proto/common/tag_snippet_pb2.py new file mode 100644 index 000000000..e223beebb --- /dev/null +++ b/google/ads/google_ads/v1/proto/common/tag_snippet_pb2.py @@ -0,0 +1,118 @@ +# 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\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') + , + 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,]) + + + + +_SIMILARUSERLISTINFO = _descriptor.Descriptor( + name='SimilarUserListInfo', + full_name='google.ads.googleads.v1.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, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=822, + serialized_end=897, +) + + +_CRMBASEDUSERLISTINFO = _descriptor.Descriptor( + name='CrmBasedUserListInfo', + full_name='google.ads.googleads.v1.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, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + 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, + 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=900, + serialized_end=1197, +) + + +_USERLISTRULEINFO = _descriptor.Descriptor( + name='UserListRuleInfo', + full_name='google.ads.googleads.v1.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, + 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, + 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=1200, + serialized_end=1392, +) + + +_USERLISTRULEITEMGROUPINFO = _descriptor.Descriptor( + name='UserListRuleItemGroupInfo', + full_name='google.ads.googleads.v1.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, + 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=1394, + serialized_end=1495, +) + + +_USERLISTRULEITEMINFO = _descriptor.Descriptor( + name='UserListRuleItemInfo', + full_name='google.ads.googleads.v1.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, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + 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=[ + _descriptor.OneofDescriptor( + name='rule_item', full_name='google.ads.googleads.v1.common.UserListRuleItemInfo.rule_item', + index=0, containing_type=None, fields=[]), + ], + serialized_start=1498, + serialized_end=1837, +) + + +_USERLISTDATERULEITEMINFO = _descriptor.Descriptor( + name='UserListDateRuleItemInfo', + full_name='google.ads.googleads.v1.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, + 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, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=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=2076, +) + + +_USERLISTNUMBERRULEITEMINFO = _descriptor.Descriptor( + name='UserListNumberRuleItemInfo', + full_name='google.ads.googleads.v1.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, + 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, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2079, + serialized_end=2268, +) + + +_USERLISTSTRINGRULEITEMINFO = _descriptor.Descriptor( + name='UserListStringRuleItemInfo', + full_name='google.ads.googleads.v1.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, + 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, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2271, + serialized_end=2460, +) + + +_COMBINEDRULEUSERLISTINFO = _descriptor.Descriptor( + name='CombinedRuleUserListInfo', + full_name='google.ads.googleads.v1.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, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + 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=2463, + serialized_end=2751, +) + + +_DATESPECIFICRULEUSERLISTINFO = _descriptor.Descriptor( + name='DateSpecificRuleUserListInfo', + full_name='google.ads.googleads.v1.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, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2754, + serialized_end=2946, +) + + +_EXPRESSIONRULEUSERLISTINFO = _descriptor.Descriptor( + name='ExpressionRuleUserListInfo', + full_name='google.ads.googleads.v1.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, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=2948, + serialized_end=3040, +) + + +_RULEBASEDUSERLISTINFO = _descriptor.Descriptor( + name='RuleBasedUserListInfo', + full_name='google.ads.googleads.v1.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, + 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, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + number=3, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + 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=[ + _descriptor.OneofDescriptor( + name='rule_based_user_list', full_name='google.ads.googleads.v1.common.RuleBasedUserListInfo.rule_based_user_list', + index=0, containing_type=None, fields=[]), + ], + serialized_start=3043, + serialized_end=3504, +) + + +_LOGICALUSERLISTINFO = _descriptor.Descriptor( + name='LogicalUserListInfo', + full_name='google.ads.googleads.v1.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, + 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=3506, + serialized_end=3599, +) + + +_USERLISTLOGICALRULEINFO = _descriptor.Descriptor( + name='UserListLogicalRuleInfo', + full_name='google.ads.googleads.v1.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, + 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, + 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=3602, + serialized_end=3820, +) + + +_LOGICALUSERLISTOPERANDINFO = _descriptor.Descriptor( + name='LogicalUserListOperandInfo', + full_name='google.ads.googleads.v1.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, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=3822, + serialized_end=3899, +) + + +_BASICUSERLISTINFO = _descriptor.Descriptor( + name='BasicUserListInfo', + full_name='google.ads.googleads.v1.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, + 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=3901, + serialized_end=3989, +) + + +_USERLISTACTIONINFO = _descriptor.Descriptor( + name='UserListActionInfo', + full_name='google.ads.googleads.v1.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, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, 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_action', full_name='google.ads.googleads.v1.common.UserListActionInfo.user_list_action', + index=0, containing_type=None, fields=[]), + ], + serialized_start=3992, + serialized_end=4151, +) + +_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 +_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 +_USERLISTRULEITEMINFO.fields_by_name['number_rule_item'].message_type = _USERLISTNUMBERRULEITEMINFO +_USERLISTRULEITEMINFO.fields_by_name['string_rule_item'].message_type = _USERLISTSTRINGRULEITEMINFO +_USERLISTRULEITEMINFO.fields_by_name['date_rule_item'].message_type = _USERLISTDATERULEITEMINFO +_USERLISTRULEITEMINFO.oneofs_by_name['rule_item'].fields.append( + _USERLISTRULEITEMINFO.fields_by_name['number_rule_item']) +_USERLISTRULEITEMINFO.fields_by_name['number_rule_item'].containing_oneof = _USERLISTRULEITEMINFO.oneofs_by_name['rule_item'] +_USERLISTRULEITEMINFO.oneofs_by_name['rule_item'].fields.append( + _USERLISTRULEITEMINFO.fields_by_name['string_rule_item']) +_USERLISTRULEITEMINFO.fields_by_name['string_rule_item'].containing_oneof = _USERLISTRULEITEMINFO.oneofs_by_name['rule_item'] +_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['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['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['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 +_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['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 +_RULEBASEDUSERLISTINFO.oneofs_by_name['rule_based_user_list'].fields.append( + _RULEBASEDUSERLISTINFO.fields_by_name['combined_rule_user_list']) +_RULEBASEDUSERLISTINFO.fields_by_name['combined_rule_user_list'].containing_oneof = _RULEBASEDUSERLISTINFO.oneofs_by_name['rule_based_user_list'] +_RULEBASEDUSERLISTINFO.oneofs_by_name['rule_based_user_list'].fields.append( + _RULEBASEDUSERLISTINFO.fields_by_name['date_specific_rule_user_list']) +_RULEBASEDUSERLISTINFO.fields_by_name['date_specific_rule_user_list'].containing_oneof = _RULEBASEDUSERLISTINFO.oneofs_by_name['rule_based_user_list'] +_RULEBASEDUSERLISTINFO.oneofs_by_name['rule_based_user_list'].fields.append( + _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['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 +_USERLISTACTIONINFO.fields_by_name['conversion_action'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_USERLISTACTIONINFO.fields_by_name['remarketing_action'].message_type = google_dot_protobuf_dot_wrappers__pb2._STRINGVALUE +_USERLISTACTIONINFO.oneofs_by_name['user_list_action'].fields.append( + _USERLISTACTIONINFO.fields_by_name['conversion_action']) +_USERLISTACTIONINFO.fields_by_name['conversion_action'].containing_oneof = _USERLISTACTIONINFO.oneofs_by_name['user_list_action'] +_USERLISTACTIONINFO.oneofs_by_name['user_list_action'].fields.append( + _USERLISTACTIONINFO.fields_by_name['remarketing_action']) +_USERLISTACTIONINFO.fields_by_name['remarketing_action'].containing_oneof = _USERLISTACTIONINFO.oneofs_by_name['user_list_action'] +DESCRIPTOR.message_types_by_name['SimilarUserListInfo'] = _SIMILARUSERLISTINFO +DESCRIPTOR.message_types_by_name['CrmBasedUserListInfo'] = _CRMBASEDUSERLISTINFO +DESCRIPTOR.message_types_by_name['UserListRuleInfo'] = _USERLISTRULEINFO +DESCRIPTOR.message_types_by_name['UserListRuleItemGroupInfo'] = _USERLISTRULEITEMGROUPINFO +DESCRIPTOR.message_types_by_name['UserListRuleItemInfo'] = _USERLISTRULEITEMINFO +DESCRIPTOR.message_types_by_name['UserListDateRuleItemInfo'] = _USERLISTDATERULEITEMINFO +DESCRIPTOR.message_types_by_name['UserListNumberRuleItemInfo'] = _USERLISTNUMBERRULEITEMINFO +DESCRIPTOR.message_types_by_name['UserListStringRuleItemInfo'] = _USERLISTSTRINGRULEITEMINFO +DESCRIPTOR.message_types_by_name['CombinedRuleUserListInfo'] = _COMBINEDRULEUSERLISTINFO +DESCRIPTOR.message_types_by_name['DateSpecificRuleUserListInfo'] = _DATESPECIFICRULEUSERLISTINFO +DESCRIPTOR.message_types_by_name['ExpressionRuleUserListInfo'] = _EXPRESSIONRULEUSERLISTINFO +DESCRIPTOR.message_types_by_name['RuleBasedUserListInfo'] = _RULEBASEDUSERLISTINFO +DESCRIPTOR.message_types_by_name['LogicalUserListInfo'] = _LOGICALUSERLISTINFO +DESCRIPTOR.message_types_by_name['UserListLogicalRuleInfo'] = _USERLISTLOGICALRULEINFO +DESCRIPTOR.message_types_by_name['LogicalUserListOperandInfo'] = _LOGICALUSERLISTOPERANDINFO +DESCRIPTOR.message_types_by_name['BasicUserListInfo'] = _BASICUSERLISTINFO +DESCRIPTOR.message_types_by_name['UserListActionInfo'] = _USERLISTACTIONINFO +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +SimilarUserListInfo = _reflection.GeneratedProtocolMessageType('SimilarUserListInfo', (_message.Message,), dict( + DESCRIPTOR = _SIMILARUSERLISTINFO, + __module__ = 'google.ads.googleads_v1.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 + Google. + + + Attributes: + seed_user_list: + Seed UserList from which this list is derived. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.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' + , + __doc__ = """UserList of CRM users provided by the advertiser. + + + Attributes: + app_id: + 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., "476943146" for "Flood-It! 2" whose + App Store link is http://itunes.apple.com/us/app/flood- + it!-2/id476943146). For Android, the ID string 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). Required + when creating CrmBasedUserList for uploading mobile + advertising IDs. + upload_key_type: + Matching key type of the list. Mixed data types are not + allowed on the same list. This field is required for an ADD + operation. + data_source_type: + Data source of the list. Default value is FIRST\_PARTY. Only + whitelisted customers can create third-party sourced CRM + lists. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.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' + , + __doc__ = """A client defined rule based on custom parameters sent by web sites or + uploaded by the advertiser. + + + Attributes: + rule_type: + Rule type is used to determine how to group rule items. The + default is OR of ANDs (disjunctive normal form). That is, rule + items will be ANDed together within rule item groups and the + groups themselves will be ORed together. Currently AND of ORs + (conjunctive normal form) is only supported for + ExpressionRuleUserList. + rule_item_groups: + 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) + )) +_sym_db.RegisterMessage(UserListRuleInfo) + +UserListRuleItemGroupInfo = _reflection.GeneratedProtocolMessageType('UserListRuleItemGroupInfo', (_message.Message,), dict( + DESCRIPTOR = _USERLISTRULEITEMGROUPINFO, + __module__ = 'google.ads.googleads_v1.proto.common.user_lists_pb2' + , + __doc__ = """A group of rule items. + + + Attributes: + rule_items: + Rule items that will be grouped together based on rule\_type. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.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' + , + __doc__ = """An atomic rule fragment. + + + Attributes: + name: + Rule variable name. It should match the corresponding key name + fired by the pixel. A name must begin with US-ascii letters or + underscore or UTF8 code that is greater than 127 and consist + of US-ascii letters or digits or underscore or UTF8 code that + is greater than 127. For websites, there are two built-in + variable URL (name = 'url\_\_') and referrer URL (name = + 'ref\_url\_\_'). This field must be populated when creating a + new rule item. + rule_item: + An atomic rule fragment. + number_rule_item: + An atomic rule fragment composed of a number operation. + string_rule_item: + An atomic rule fragment composed of a string operation. + date_rule_item: + An atomic rule fragment composed of a date operation. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.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' + , + __doc__ = """A rule item composed of date operation. + + + Attributes: + operator: + Date comparison operator. This field is required and must be + populated when creating new date rule item. + value: + String representing date value to be compared with the rule + variable. Supported date format is YYYY-MM-DD. Times are + reported in the customer's time zone. + offset_in_days: + The relative date value of the right hand side denoted by + 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) + )) +_sym_db.RegisterMessage(UserListDateRuleItemInfo) + +UserListNumberRuleItemInfo = _reflection.GeneratedProtocolMessageType('UserListNumberRuleItemInfo', (_message.Message,), dict( + DESCRIPTOR = _USERLISTNUMBERRULEITEMINFO, + __module__ = 'google.ads.googleads_v1.proto.common.user_lists_pb2' + , + __doc__ = """A rule item composed of number operation. + + + Attributes: + operator: + Number comparison operator. This field is required and must be + populated when creating a new number rule item. + value: + Number value to be compared with the variable. This field is + required and must be populated when creating a new number rule + item. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.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' + , + __doc__ = """A rule item fragment composed of date operation. + + + Attributes: + operator: + String comparison operator. This field is required and must be + populated when creating a new string rule item. + value: + The right hand side of the string rule item. For URLs or + referrer URLs, the value can not contain illegal URL chars + such as newlines, quotes, tabs, or parentheses. This field is + required and must be populated when creating a new string rule + item. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.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' + , + __doc__ = """User lists defined by combining two rules, left operand and right + operand. There are two operators: AND where left operand and right + operand have to be true; AND\_NOT where left operand is true but right + operand is false. + + + Attributes: + left_operand: + Left operand of the combined rule. This field is required and + must be populated when creating new combined rule based user + list. + right_operand: + Right operand of the combined rule. This field is required and + must be populated when creating new combined rule based user + list. + rule_operator: + 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) + )) +_sym_db.RegisterMessage(CombinedRuleUserListInfo) + +DateSpecificRuleUserListInfo = _reflection.GeneratedProtocolMessageType('DateSpecificRuleUserListInfo', (_message.Message,), dict( + DESCRIPTOR = _DATESPECIFICRULEUSERLISTINFO, + __module__ = 'google.ads.googleads_v1.proto.common.user_lists_pb2' + , + __doc__ = """Visitors of a page during specific dates. + + + Attributes: + rule: + Boolean rule that defines visitor of a page. Required for + creating a date specific rule user list. + start_date: + Start date of users visit. If set to 2000-01-01, then the list + includes all users before end\_date. The date's format should + be YYYY-MM-DD. Required for creating a data specific rule + user list. + end_date: + End date of users visit. If set to 2037-12-30, then the list + includes all users after start\_date. The date's format should + be YYYY-MM-DD. Required for creating a data specific rule + user list. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.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' + , + __doc__ = """Visitors of a page. The page visit is defined by one boolean rule + expression. + + + Attributes: + rule: + Boolean rule that defines this user list. The rule consists of + a list of rule item groups and each rule item group consists + of a list of rule items. All the rule item groups are ORed or + 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) + )) +_sym_db.RegisterMessage(ExpressionRuleUserListInfo) + +RuleBasedUserListInfo = _reflection.GeneratedProtocolMessageType('RuleBasedUserListInfo', (_message.Message,), dict( + DESCRIPTOR = _RULEBASEDUSERLISTINFO, + __module__ = 'google.ads.googleads_v1.proto.common.user_lists_pb2' + , + __doc__ = """Representation of a userlist that is generated by a rule. + + + Attributes: + prepopulation_status: + The status of pre-population. The field is default to NONE if + not set which means the previous users will not be considered. + If set to REQUESTED, past site visitors or app users who match + the list definition will be included in the list (works on the + Display Network only). This will only add past users from + within the last 30 days, depending on the list's membership + duration and the date when the remarketing tag is added. The + status will be updated to FINISHED once request is processed, + or FAILED if the request fails. + rule_based_user_list: + Subtypes of rule based user lists. + combined_rule_user_list: + User lists defined by combining two rules. There are two + operators: AND, where the left and right operands have to be + true; AND\_NOT where left operand is true but right operand is + false. + date_specific_rule_user_list: + Visitors of a page during specific dates. The visiting periods + are defined as follows: Between start\_date (inclusive) and + end\_date (inclusive); Before end\_date (exclusive) with + start\_date = 2000-01-01; After start\_date (exclusive) with + end\_date = 2037-12-30. + expression_rule_user_list: + 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) + )) +_sym_db.RegisterMessage(RuleBasedUserListInfo) + +LogicalUserListInfo = _reflection.GeneratedProtocolMessageType('LogicalUserListInfo', (_message.Message,), dict( + DESCRIPTOR = _LOGICALUSERLISTINFO, + __module__ = 'google.ads.googleads_v1.proto.common.user_lists_pb2' + , + __doc__ = """Represents a user list that is a custom combination of user lists. + + + Attributes: + rules: + Logical list rules that define this user list. The rules are + defined as a logical operator (ALL/ANY/NONE) and a list of + 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) + )) +_sym_db.RegisterMessage(LogicalUserListInfo) + +UserListLogicalRuleInfo = _reflection.GeneratedProtocolMessageType('UserListLogicalRuleInfo', (_message.Message,), dict( + DESCRIPTOR = _USERLISTLOGICALRULEINFO, + __module__ = 'google.ads.googleads_v1.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. + + + Attributes: + operator: + The logical operator of the rule. + rule_operands: + The list of operands of the rule. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.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' + , + __doc__ = """Operand of logical user list that consists of a user list. + + + Attributes: + user_list: + Resource name of a user list as an operand. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.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' + , + __doc__ = """User list targeting as a collection of conversions or remarketing + actions. + + + Attributes: + actions: + Actions associated with this user list. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.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' + , + __doc__ = """Represents an action type used for building remarketing user lists. + + + Attributes: + user_list_action: + Subtypes of user list action. + conversion_action: + A conversion action that's not generated from remarketing. + remarketing_action: + A remarketing action. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.UserListActionInfo) + )) +_sym_db.RegisterMessage(UserListActionInfo) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/common/user_lists_pb2_grpc.py b/google/ads/google_ads/v1/proto/common/user_lists_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/common/user_lists_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/common/value_pb2.py b/google/ads/google_ads/v1/proto/common/value_pb2.py new file mode 100644 index 000000000..d382bb5ce --- /dev/null +++ b/google/ads/google_ads/v1/proto/common/value_pb2.py @@ -0,0 +1,136 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/common/value.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf 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/common/value.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + + +_VALUE = _descriptor.Descriptor( + name='Value', + full_name='google.ads.googleads.v1.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, + 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, + 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, + 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, + 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, + 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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + _descriptor.OneofDescriptor( + name='value', full_name='google.ads.googleads.v1.common.Value.value', + index=0, containing_type=None, fields=[]), + ], + serialized_start=115, + serialized_end=250, +) + +_VALUE.oneofs_by_name['value'].fields.append( + _VALUE.fields_by_name['boolean_value']) +_VALUE.fields_by_name['boolean_value'].containing_oneof = _VALUE.oneofs_by_name['value'] +_VALUE.oneofs_by_name['value'].fields.append( + _VALUE.fields_by_name['int64_value']) +_VALUE.fields_by_name['int64_value'].containing_oneof = _VALUE.oneofs_by_name['value'] +_VALUE.oneofs_by_name['value'].fields.append( + _VALUE.fields_by_name['float_value']) +_VALUE.fields_by_name['float_value'].containing_oneof = _VALUE.oneofs_by_name['value'] +_VALUE.oneofs_by_name['value'].fields.append( + _VALUE.fields_by_name['double_value']) +_VALUE.fields_by_name['double_value'].containing_oneof = _VALUE.oneofs_by_name['value'] +_VALUE.oneofs_by_name['value'].fields.append( + _VALUE.fields_by_name['string_value']) +_VALUE.fields_by_name['string_value'].containing_oneof = _VALUE.oneofs_by_name['value'] +DESCRIPTOR.message_types_by_name['Value'] = _VALUE +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +Value = _reflection.GeneratedProtocolMessageType('Value', (_message.Message,), dict( + DESCRIPTOR = _VALUE, + __module__ = 'google.ads.googleads_v1.proto.common.value_pb2' + , + __doc__ = """A generic data container. + + + Attributes: + value: + A value. + boolean_value: + A boolean. + int64_value: + An int64. + float_value: + A float. + double_value: + A double. + string_value: + A string. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.common.Value) + )) +_sym_db.RegisterMessage(Value) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/common/value_pb2_grpc.py b/google/ads/google_ads/v1/proto/common/value_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/common/value_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/enums/__init__.py b/google/ads/google_ads/v1/proto/enums/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/google/ads/google_ads/v1/proto/enums/access_reason_pb2.py b/google/ads/google_ads/v1/proto/enums/access_reason_pb2.py new file mode 100644 index 000000000..9d86f354b --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/access_reason_pb2.py @@ -0,0 +1,112 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/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_v1/proto/enums/access_reason.proto', + package='google.ads.googleads.v1.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\021AccessReasonProtoP\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('\n7google/ads/googleads_v1/proto/enums/access_reason.proto\x12\x1dgoogle.ads.googleads.v1.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.v1.enumsB\x11\x41\x63\x63\x65ssReasonProtoP\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,]) + + + +_ACCESSREASONENUM_ACCESSREASON = _descriptor.EnumDescriptor( + name='AccessReason', + full_name='google.ads.googleads.v1.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.v1.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_v1.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.v1.enums.AccessReasonEnum) + )) +_sym_db.RegisterMessage(AccessReasonEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/access_reason_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/access_reason_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/access_reason_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/enums/account_budget_proposal_status_pb2.py b/google/ads/google_ads/v1/proto/enums/account_budget_proposal_status_pb2.py new file mode 100644 index 000000000..6f6d8f23e --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/account_budget_proposal_status_pb2.py @@ -0,0 +1,112 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/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')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf 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/account_budget_proposal_status.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_ACCOUNTBUDGETPROPOSALSTATUSENUM_ACCOUNTBUDGETPROPOSALSTATUS = _descriptor.EnumDescriptor( + name='AccountBudgetProposalStatus', + full_name='google.ads.googleads.v1.enums.AccountBudgetProposalStatusEnum.AccountBudgetProposalStatus', + 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_HELD', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='APPROVED', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANCELLED', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='REJECTED', index=6, number=6, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=174, + serialized_end=308, +) +_sym_db.RegisterEnumDescriptor(_ACCOUNTBUDGETPROPOSALSTATUSENUM_ACCOUNTBUDGETPROPOSALSTATUS) + + +_ACCOUNTBUDGETPROPOSALSTATUSENUM = _descriptor.Descriptor( + name='AccountBudgetProposalStatusEnum', + full_name='google.ads.googleads.v1.enums.AccountBudgetProposalStatusEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _ACCOUNTBUDGETPROPOSALSTATUSENUM_ACCOUNTBUDGETPROPOSALSTATUS, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=138, + serialized_end=308, +) + +_ACCOUNTBUDGETPROPOSALSTATUSENUM_ACCOUNTBUDGETPROPOSALSTATUS.containing_type = _ACCOUNTBUDGETPROPOSALSTATUSENUM +DESCRIPTOR.message_types_by_name['AccountBudgetProposalStatusEnum'] = _ACCOUNTBUDGETPROPOSALSTATUSENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +AccountBudgetProposalStatusEnum = _reflection.GeneratedProtocolMessageType('AccountBudgetProposalStatusEnum', (_message.Message,), dict( + DESCRIPTOR = _ACCOUNTBUDGETPROPOSALSTATUSENUM, + __module__ = 'google.ads.googleads_v1.proto.enums.account_budget_proposal_status_pb2' + , + __doc__ = """Message describing AccountBudgetProposal statuses. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.AccountBudgetProposalStatusEnum) + )) +_sym_db.RegisterMessage(AccountBudgetProposalStatusEnum) + + +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/v1/proto/enums/account_budget_proposal_status_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/account_budget_proposal_status_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/enums/account_budget_proposal_type_pb2.py b/google/ads/google_ads/v1/proto/enums/account_budget_proposal_type_pb2.py new file mode 100644 index 000000000..7ab241aab --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/account_budget_proposal_type_pb2.py @@ -0,0 +1,108 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/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')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf 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/account_budget_proposal_type.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_ACCOUNTBUDGETPROPOSALTYPEENUM_ACCOUNTBUDGETPROPOSALTYPE = _descriptor.EnumDescriptor( + name='AccountBudgetProposalType', + full_name='google.ads.googleads.v1.enums.AccountBudgetProposalTypeEnum.AccountBudgetProposalType', + 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='CREATE', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UPDATE', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='END', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='REMOVE', index=5, number=5, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=169, + serialized_end=271, +) +_sym_db.RegisterEnumDescriptor(_ACCOUNTBUDGETPROPOSALTYPEENUM_ACCOUNTBUDGETPROPOSALTYPE) + + +_ACCOUNTBUDGETPROPOSALTYPEENUM = _descriptor.Descriptor( + name='AccountBudgetProposalTypeEnum', + full_name='google.ads.googleads.v1.enums.AccountBudgetProposalTypeEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _ACCOUNTBUDGETPROPOSALTYPEENUM_ACCOUNTBUDGETPROPOSALTYPE, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=136, + serialized_end=271, +) + +_ACCOUNTBUDGETPROPOSALTYPEENUM_ACCOUNTBUDGETPROPOSALTYPE.containing_type = _ACCOUNTBUDGETPROPOSALTYPEENUM +DESCRIPTOR.message_types_by_name['AccountBudgetProposalTypeEnum'] = _ACCOUNTBUDGETPROPOSALTYPEENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +AccountBudgetProposalTypeEnum = _reflection.GeneratedProtocolMessageType('AccountBudgetProposalTypeEnum', (_message.Message,), dict( + DESCRIPTOR = _ACCOUNTBUDGETPROPOSALTYPEENUM, + __module__ = 'google.ads.googleads_v1.proto.enums.account_budget_proposal_type_pb2' + , + __doc__ = """Message describing AccountBudgetProposal types. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.AccountBudgetProposalTypeEnum) + )) +_sym_db.RegisterMessage(AccountBudgetProposalTypeEnum) + + +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/v1/proto/enums/account_budget_proposal_type_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/account_budget_proposal_type_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/enums/account_budget_status_pb2.py b/google/ads/google_ads/v1/proto/enums/account_budget_status_pb2.py new file mode 100644 index 000000000..d4d4cbfab --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/account_budget_status_pb2.py @@ -0,0 +1,104 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/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_v1/proto/enums/account_budget_status.proto', + package='google.ads.googleads.v1.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\030AccountBudgetStatusProtoP\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/account_budget_status.proto\x12\x1dgoogle.ads.googleads.v1.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.v1.enumsB\x18\x41\x63\x63ountBudgetStatusProtoP\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,]) + + + +_ACCOUNTBUDGETSTATUSENUM_ACCOUNTBUDGETSTATUS = _descriptor.EnumDescriptor( + name='AccountBudgetStatus', + full_name='google.ads.googleads.v1.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.v1.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_v1.proto.enums.account_budget_status_pb2' + , + __doc__ = """Message describing AccountBudget statuses. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.AccountBudgetStatusEnum) + )) +_sym_db.RegisterMessage(AccountBudgetStatusEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/account_budget_status_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/account_budget_status_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/account_budget_status_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/enums/ad_customizer_placeholder_field_pb2.py b/google/ads/google_ads/v1/proto/enums/ad_customizer_placeholder_field_pb2.py new file mode 100644 index 000000000..48d447966 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/ad_customizer_placeholder_field_pb2.py @@ -0,0 +1,108 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/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')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf 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/ad_customizer_placeholder_field.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_ADCUSTOMIZERPLACEHOLDERFIELDENUM_ADCUSTOMIZERPLACEHOLDERFIELD = _descriptor.EnumDescriptor( + name='AdCustomizerPlaceholderField', + full_name='google.ads.googleads.v1.enums.AdCustomizerPlaceholderFieldEnum.AdCustomizerPlaceholderField', + 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='INTEGER', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PRICE', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DATE', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='STRING', index=5, number=5, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=175, + serialized_end=281, +) +_sym_db.RegisterEnumDescriptor(_ADCUSTOMIZERPLACEHOLDERFIELDENUM_ADCUSTOMIZERPLACEHOLDERFIELD) + + +_ADCUSTOMIZERPLACEHOLDERFIELDENUM = _descriptor.Descriptor( + name='AdCustomizerPlaceholderFieldEnum', + full_name='google.ads.googleads.v1.enums.AdCustomizerPlaceholderFieldEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _ADCUSTOMIZERPLACEHOLDERFIELDENUM_ADCUSTOMIZERPLACEHOLDERFIELD, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=139, + serialized_end=281, +) + +_ADCUSTOMIZERPLACEHOLDERFIELDENUM_ADCUSTOMIZERPLACEHOLDERFIELD.containing_type = _ADCUSTOMIZERPLACEHOLDERFIELDENUM +DESCRIPTOR.message_types_by_name['AdCustomizerPlaceholderFieldEnum'] = _ADCUSTOMIZERPLACEHOLDERFIELDENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +AdCustomizerPlaceholderFieldEnum = _reflection.GeneratedProtocolMessageType('AdCustomizerPlaceholderFieldEnum', (_message.Message,), dict( + DESCRIPTOR = _ADCUSTOMIZERPLACEHOLDERFIELDENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(AdCustomizerPlaceholderFieldEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/ad_customizer_placeholder_field_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/ad_customizer_placeholder_field_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/ad_customizer_placeholder_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/v1/proto/enums/ad_group_ad_rotation_mode_pb2.py b/google/ads/google_ads/v1/proto/enums/ad_group_ad_rotation_mode_pb2.py new file mode 100644 index 000000000..d35769f98 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/ad_group_ad_rotation_mode_pb2.py @@ -0,0 +1,101 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/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')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf 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/ad_group_ad_rotation_mode.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_ADGROUPADROTATIONMODEENUM_ADGROUPADROTATIONMODE = _descriptor.EnumDescriptor( + name='AdGroupAdRotationMode', + full_name='google.ads.googleads.v1.enums.AdGroupAdRotationModeEnum.AdGroupAdRotationMode', + 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='OPTIMIZE', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ROTATE_FOREVER', index=3, number=3, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=161, + serialized_end=248, +) +_sym_db.RegisterEnumDescriptor(_ADGROUPADROTATIONMODEENUM_ADGROUPADROTATIONMODE) + + +_ADGROUPADROTATIONMODEENUM = _descriptor.Descriptor( + name='AdGroupAdRotationModeEnum', + full_name='google.ads.googleads.v1.enums.AdGroupAdRotationModeEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _ADGROUPADROTATIONMODEENUM_ADGROUPADROTATIONMODE, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=132, + serialized_end=248, +) + +_ADGROUPADROTATIONMODEENUM_ADGROUPADROTATIONMODE.containing_type = _ADGROUPADROTATIONMODEENUM +DESCRIPTOR.message_types_by_name['AdGroupAdRotationModeEnum'] = _ADGROUPADROTATIONMODEENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +AdGroupAdRotationModeEnum = _reflection.GeneratedProtocolMessageType('AdGroupAdRotationModeEnum', (_message.Message,), dict( + DESCRIPTOR = _ADGROUPADROTATIONMODEENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(AdGroupAdRotationModeEnum) + + +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/v1/proto/enums/ad_group_ad_rotation_mode_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/ad_group_ad_rotation_mode_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/enums/ad_group_ad_status_pb2.py b/google/ads/google_ads/v1/proto/enums/ad_group_ad_status_pb2.py new file mode 100644 index 000000000..73cbfdf16 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/ad_group_ad_status_pb2.py @@ -0,0 +1,104 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/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_v1/proto/enums/ad_group_ad_status.proto', + package='google.ads.googleads.v1.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\024AdGroupAdStatusProtoP\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/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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_BILLINGSETUPSTATUSENUM_BILLINGSETUPSTATUS = _descriptor.EnumDescriptor( + name='BillingSetupStatus', + full_name='google.ads.googleads.v1.enums.BillingSetupStatusEnum.BillingSetupStatus', + 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_HELD', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='APPROVED', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANCELLED', index=5, number=5, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=154, + serialized_end=265, +) +_sym_db.RegisterEnumDescriptor(_BILLINGSETUPSTATUSENUM_BILLINGSETUPSTATUS) + + +_BILLINGSETUPSTATUSENUM = _descriptor.Descriptor( + name='BillingSetupStatusEnum', + full_name='google.ads.googleads.v1.enums.BillingSetupStatusEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _BILLINGSETUPSTATUSENUM_BILLINGSETUPSTATUS, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=128, + serialized_end=265, +) + +_BILLINGSETUPSTATUSENUM_BILLINGSETUPSTATUS.containing_type = _BILLINGSETUPSTATUSENUM +DESCRIPTOR.message_types_by_name['BillingSetupStatusEnum'] = _BILLINGSETUPSTATUSENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +BillingSetupStatusEnum = _reflection.GeneratedProtocolMessageType('BillingSetupStatusEnum', (_message.Message,), dict( + DESCRIPTOR = _BILLINGSETUPSTATUSENUM, + __module__ = 'google.ads.googleads_v1.proto.enums.billing_setup_status_pb2' + , + __doc__ = """Message describing BillingSetup statuses. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.BillingSetupStatusEnum) + )) +_sym_db.RegisterMessage(BillingSetupStatusEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/billing_setup_status_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/billing_setup_status_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/billing_setup_status_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/enums/brand_safety_suitability_pb2.py b/google/ads/google_ads/v1/proto/enums/brand_safety_suitability_pb2.py new file mode 100644 index 000000000..8934c14ab --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/brand_safety_suitability_pb2.py @@ -0,0 +1,104 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/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_v1/proto/enums/brand_safety_suitability.proto', + package='google.ads.googleads.v1.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\033BrandSafetySuitabilityProtoP\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/brand_safety_suitability.proto\x12\x1dgoogle.ads.googleads.v1.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.v1.enumsB\x1b\x42randSafetySuitabilityProtoP\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,]) + + + +_BRANDSAFETYSUITABILITYENUM_BRANDSAFETYSUITABILITY = _descriptor.EnumDescriptor( + name='BrandSafetySuitability', + full_name='google.ads.googleads.v1.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.v1.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_v1.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.v1.enums.BrandSafetySuitabilityEnum) + )) +_sym_db.RegisterMessage(BrandSafetySuitabilityEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/brand_safety_suitability_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/brand_safety_suitability_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/brand_safety_suitability_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/enums/budget_delivery_method_pb2.py b/google/ads/google_ads/v1/proto/enums/budget_delivery_method_pb2.py new file mode 100644 index 000000000..5146a3e57 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/budget_delivery_method_pb2.py @@ -0,0 +1,101 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/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_v1/proto/enums/budget_delivery_method.proto', + package='google.ads.googleads.v1.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\031BudgetDeliveryMethodProtoP\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/budget_delivery_method.proto\x12\x1dgoogle.ads.googleads.v1.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.v1.enumsB\x19\x42udgetDeliveryMethodProtoP\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,]) + + + +_BUDGETDELIVERYMETHODENUM_BUDGETDELIVERYMETHOD = _descriptor.EnumDescriptor( + name='BudgetDeliveryMethod', + full_name='google.ads.googleads.v1.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.v1.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_v1.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.v1.enums.BudgetDeliveryMethodEnum) + )) +_sym_db.RegisterMessage(BudgetDeliveryMethodEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/budget_delivery_method_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/budget_delivery_method_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/budget_delivery_method_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/enums/budget_period_pb2.py b/google/ads/google_ads/v1/proto/enums/budget_period_pb2.py new file mode 100644 index 000000000..a5b8314be --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/budget_period_pb2.py @@ -0,0 +1,104 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/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_v1/proto/enums/budget_period.proto', + package='google.ads.googleads.v1.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\021BudgetPeriodProtoP\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('\n7google/ads/googleads_v1/proto/enums/budget_period.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"h\n\x10\x42udgetPeriodEnum\"T\n\x0c\x42udgetPeriod\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\t\n\x05\x44\x41ILY\x10\x02\x12\n\n\x06\x43USTOM\x10\x03\x12\x0f\n\x0b\x46IXED_DAILY\x10\x04\x42\xe6\x01\n!com.google.ads.googleads.v1.enumsB\x11\x42udgetPeriodProtoP\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,]) + + + +_BUDGETPERIODENUM_BUDGETPERIOD = _descriptor.EnumDescriptor( + name='BudgetPeriod', + full_name='google.ads.googleads.v1.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), + _descriptor.EnumValueDescriptor( + name='CUSTOM', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FIXED_DAILY', index=4, number=4, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=140, + serialized_end=224, +) +_sym_db.RegisterEnumDescriptor(_BUDGETPERIODENUM_BUDGETPERIOD) + + +_BUDGETPERIODENUM = _descriptor.Descriptor( + name='BudgetPeriodEnum', + full_name='google.ads.googleads.v1.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=224, +) + +_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_v1.proto.enums.budget_period_pb2' + , + __doc__ = """Message describing Budget period. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.BudgetPeriodEnum) + )) +_sym_db.RegisterMessage(BudgetPeriodEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/budget_period_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/budget_period_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/budget_period_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/enums/budget_status_pb2.py b/google/ads/google_ads/v1/proto/enums/budget_status_pb2.py new file mode 100644 index 000000000..a6a23bfbf --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/budget_status_pb2.py @@ -0,0 +1,100 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/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_v1/proto/enums/budget_status.proto', + package='google.ads.googleads.v1.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\021BudgetStatusProtoP\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('\n7google/ads/googleads_v1/proto/enums/budget_status.proto\x12\x1dgoogle.ads.googleads.v1.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.v1.enumsB\x11\x42udgetStatusProtoP\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,]) + + + +_BUDGETSTATUSENUM_BUDGETSTATUS = _descriptor.EnumDescriptor( + name='BudgetStatus', + full_name='google.ads.googleads.v1.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.v1.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_v1.proto.enums.budget_status_pb2' + , + __doc__ = """Message describing a Budget status + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.BudgetStatusEnum) + )) +_sym_db.RegisterMessage(BudgetStatusEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/budget_status_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/budget_status_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/budget_status_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/enums/call_conversion_reporting_state_pb2.py b/google/ads/google_ads/v1/proto/enums/call_conversion_reporting_state_pb2.py new file mode 100644 index 000000000..fb2a6ff2a --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/call_conversion_reporting_state_pb2.py @@ -0,0 +1,105 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/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')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf 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/call_conversion_reporting_state.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_CALLCONVERSIONREPORTINGSTATEENUM_CALLCONVERSIONREPORTINGSTATE = _descriptor.EnumDescriptor( + name='CallConversionReportingState', + full_name='google.ads.googleads.v1.enums.CallConversionReportingStateEnum.CallConversionReportingState', + 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='DISABLED', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='USE_ACCOUNT_LEVEL_CALL_CONVERSION_ACTION', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='USE_RESOURCE_LEVEL_CALL_CONVERSION_ACTION', index=4, number=4, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=176, + serialized_end=343, +) +_sym_db.RegisterEnumDescriptor(_CALLCONVERSIONREPORTINGSTATEENUM_CALLCONVERSIONREPORTINGSTATE) + + +_CALLCONVERSIONREPORTINGSTATEENUM = _descriptor.Descriptor( + name='CallConversionReportingStateEnum', + full_name='google.ads.googleads.v1.enums.CallConversionReportingStateEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _CALLCONVERSIONREPORTINGSTATEENUM_CALLCONVERSIONREPORTINGSTATE, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=139, + serialized_end=343, +) + +_CALLCONVERSIONREPORTINGSTATEENUM_CALLCONVERSIONREPORTINGSTATE.containing_type = _CALLCONVERSIONREPORTINGSTATEENUM +DESCRIPTOR.message_types_by_name['CallConversionReportingStateEnum'] = _CALLCONVERSIONREPORTINGSTATEENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +CallConversionReportingStateEnum = _reflection.GeneratedProtocolMessageType('CallConversionReportingStateEnum', (_message.Message,), dict( + DESCRIPTOR = _CALLCONVERSIONREPORTINGSTATEENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(CallConversionReportingStateEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/call_conversion_reporting_state_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/call_conversion_reporting_state_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/call_conversion_reporting_state_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/enums/call_placeholder_field_pb2.py b/google/ads/google_ads/v1/proto/enums/call_placeholder_field_pb2.py new file mode 100644 index 000000000..d79928a5f --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/call_placeholder_field_pb2.py @@ -0,0 +1,112 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/enums/call_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_v1/proto/enums/call_placeholder_field.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_CALLPLACEHOLDERFIELDENUM_CALLPLACEHOLDERFIELD = _descriptor.EnumDescriptor( + name='CallPlaceholderField', + full_name='google.ads.googleads.v1.enums.CallPlaceholderFieldEnum.CallPlaceholderField', + 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='PHONE_NUMBER', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='COUNTRY_CODE', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TRACKED', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CONVERSION_TYPE_ID', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CONVERSION_REPORTING_STATE', index=6, number=6, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=159, + serialized_end=316, +) +_sym_db.RegisterEnumDescriptor(_CALLPLACEHOLDERFIELDENUM_CALLPLACEHOLDERFIELD) + + +_CALLPLACEHOLDERFIELDENUM = _descriptor.Descriptor( + name='CallPlaceholderFieldEnum', + full_name='google.ads.googleads.v1.enums.CallPlaceholderFieldEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _CALLPLACEHOLDERFIELDENUM_CALLPLACEHOLDERFIELD, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=130, + serialized_end=316, +) + +_CALLPLACEHOLDERFIELDENUM_CALLPLACEHOLDERFIELD.containing_type = _CALLPLACEHOLDERFIELDENUM +DESCRIPTOR.message_types_by_name['CallPlaceholderFieldEnum'] = _CALLPLACEHOLDERFIELDENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +CallPlaceholderFieldEnum = _reflection.GeneratedProtocolMessageType('CallPlaceholderFieldEnum', (_message.Message,), dict( + DESCRIPTOR = _CALLPLACEHOLDERFIELDENUM, + __module__ = 'google.ads.googleads_v1.proto.enums.call_placeholder_field_pb2' + , + __doc__ = """Values for Call placeholder fields. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.CallPlaceholderFieldEnum) + )) +_sym_db.RegisterMessage(CallPlaceholderFieldEnum) + + +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/v1/proto/enums/call_placeholder_field_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/call_placeholder_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/v1/proto/enums/callout_placeholder_field_pb2.py b/google/ads/google_ads/v1/proto/enums/callout_placeholder_field_pb2.py new file mode 100644 index 000000000..bb8792855 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/callout_placeholder_field_pb2.py @@ -0,0 +1,96 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/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_v1/proto/enums/callout_placeholder_field.proto', + package='google.ads.googleads.v1.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\034CalloutPlaceholderFieldProtoP\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/callout_placeholder_field.proto\x12\x1dgoogle.ads.googleads.v1.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.v1.enumsB\x1c\x43\x61lloutPlaceholderFieldProtoP\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,]) + + + +_CALLOUTPLACEHOLDERFIELDENUM_CALLOUTPLACEHOLDERFIELD = _descriptor.EnumDescriptor( + name='CalloutPlaceholderField', + full_name='google.ads.googleads.v1.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.v1.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_v1.proto.enums.callout_placeholder_field_pb2' + , + __doc__ = """Values for Callout placeholder fields. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.CalloutPlaceholderFieldEnum) + )) +_sym_db.RegisterMessage(CalloutPlaceholderFieldEnum) + + +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/v1/proto/enums/callout_placeholder_field_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/callout_placeholder_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/v1/proto/enums/campaign_serving_status_pb2.py b/google/ads/google_ads/v1/proto/enums/campaign_serving_status_pb2.py new file mode 100644 index 000000000..b5b9150ac --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/campaign_serving_status_pb2.py @@ -0,0 +1,112 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/enums/campaign_serving_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/campaign_serving_status.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_CAMPAIGNSERVINGSTATUSENUM_CAMPAIGNSERVINGSTATUS = _descriptor.EnumDescriptor( + name='CampaignServingStatus', + full_name='google.ads.googleads.v1.enums.CampaignServingStatusEnum.CampaignServingStatus', + 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='SERVING', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NONE', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ENDED', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PENDING', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SUSPENDED', index=6, number=6, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=160, + serialized_end=275, +) +_sym_db.RegisterEnumDescriptor(_CAMPAIGNSERVINGSTATUSENUM_CAMPAIGNSERVINGSTATUS) + + +_CAMPAIGNSERVINGSTATUSENUM = _descriptor.Descriptor( + name='CampaignServingStatusEnum', + full_name='google.ads.googleads.v1.enums.CampaignServingStatusEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _CAMPAIGNSERVINGSTATUSENUM_CAMPAIGNSERVINGSTATUS, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=131, + serialized_end=275, +) + +_CAMPAIGNSERVINGSTATUSENUM_CAMPAIGNSERVINGSTATUS.containing_type = _CAMPAIGNSERVINGSTATUSENUM +DESCRIPTOR.message_types_by_name['CampaignServingStatusEnum'] = _CAMPAIGNSERVINGSTATUSENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +CampaignServingStatusEnum = _reflection.GeneratedProtocolMessageType('CampaignServingStatusEnum', (_message.Message,), dict( + DESCRIPTOR = _CAMPAIGNSERVINGSTATUSENUM, + __module__ = 'google.ads.googleads_v1.proto.enums.campaign_serving_status_pb2' + , + __doc__ = """Message describing Campaign serving statuses. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.CampaignServingStatusEnum) + )) +_sym_db.RegisterMessage(CampaignServingStatusEnum) + + +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/v1/proto/enums/campaign_serving_status_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/campaign_serving_status_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/enums/campaign_shared_set_status_pb2.py b/google/ads/google_ads/v1/proto/enums/campaign_shared_set_status_pb2.py new file mode 100644 index 000000000..e61e28cdd --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/campaign_shared_set_status_pb2.py @@ -0,0 +1,100 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/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')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf 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/campaign_shared_set_status.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_CAMPAIGNSHAREDSETSTATUSENUM_CAMPAIGNSHAREDSETSTATUS = _descriptor.EnumDescriptor( + name='CampaignSharedSetStatus', + full_name='google.ads.googleads.v1.enums.CampaignSharedSetStatusEnum.CampaignSharedSetStatus', + 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=164, + serialized_end=245, +) +_sym_db.RegisterEnumDescriptor(_CAMPAIGNSHAREDSETSTATUSENUM_CAMPAIGNSHAREDSETSTATUS) + + +_CAMPAIGNSHAREDSETSTATUSENUM = _descriptor.Descriptor( + name='CampaignSharedSetStatusEnum', + full_name='google.ads.googleads.v1.enums.CampaignSharedSetStatusEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _CAMPAIGNSHAREDSETSTATUSENUM_CAMPAIGNSHAREDSETSTATUS, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=133, + serialized_end=245, +) + +_CAMPAIGNSHAREDSETSTATUSENUM_CAMPAIGNSHAREDSETSTATUS.containing_type = _CAMPAIGNSHAREDSETSTATUSENUM +DESCRIPTOR.message_types_by_name['CampaignSharedSetStatusEnum'] = _CAMPAIGNSHAREDSETSTATUSENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +CampaignSharedSetStatusEnum = _reflection.GeneratedProtocolMessageType('CampaignSharedSetStatusEnum', (_message.Message,), dict( + DESCRIPTOR = _CAMPAIGNSHAREDSETSTATUSENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(CampaignSharedSetStatusEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/campaign_shared_set_status_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/campaign_shared_set_status_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/campaign_shared_set_status_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/enums/campaign_status_pb2.py b/google/ads/google_ads/v1/proto/enums/campaign_status_pb2.py new file mode 100644 index 000000000..4425c9588 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/campaign_status_pb2.py @@ -0,0 +1,104 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/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_v1/proto/enums/campaign_status.proto', + package='google.ads.googleads.v1.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\023CampaignStatusProtoP\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/campaign_status.proto\x12\x1dgoogle.ads.googleads.v1.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.v1.enumsB\x13\x43\x61mpaignStatusProtoP\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,]) + + + +_CAMPAIGNSTATUSENUM_CAMPAIGNSTATUS = _descriptor.EnumDescriptor( + name='CampaignStatus', + full_name='google.ads.googleads.v1.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.v1.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_v1.proto.enums.campaign_status_pb2' + , + __doc__ = """Container for enum describing possible statuses of a campaign. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.CampaignStatusEnum) + )) +_sym_db.RegisterMessage(CampaignStatusEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/campaign_status_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/campaign_status_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/campaign_status_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/enums/change_status_operation_pb2.py b/google/ads/google_ads/v1/proto/enums/change_status_operation_pb2.py new file mode 100644 index 000000000..996113c80 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/change_status_operation_pb2.py @@ -0,0 +1,104 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/enums/change_status_operation.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf 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/change_status_operation.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_CHANGESTATUSOPERATIONENUM_CHANGESTATUSOPERATION = _descriptor.EnumDescriptor( + name='ChangeStatusOperation', + full_name='google.ads.googleads.v1.enums.ChangeStatusOperationEnum.ChangeStatusOperation', + 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='ADDED', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CHANGED', 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=159, + serialized_end=249, +) +_sym_db.RegisterEnumDescriptor(_CHANGESTATUSOPERATIONENUM_CHANGESTATUSOPERATION) + + +_CHANGESTATUSOPERATIONENUM = _descriptor.Descriptor( + name='ChangeStatusOperationEnum', + full_name='google.ads.googleads.v1.enums.ChangeStatusOperationEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _CHANGESTATUSOPERATIONENUM_CHANGESTATUSOPERATION, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=130, + serialized_end=249, +) + +_CHANGESTATUSOPERATIONENUM_CHANGESTATUSOPERATION.containing_type = _CHANGESTATUSOPERATIONENUM +DESCRIPTOR.message_types_by_name['ChangeStatusOperationEnum'] = _CHANGESTATUSOPERATIONENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ChangeStatusOperationEnum = _reflection.GeneratedProtocolMessageType('ChangeStatusOperationEnum', (_message.Message,), dict( + DESCRIPTOR = _CHANGESTATUSOPERATIONENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(ChangeStatusOperationEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/change_status_operation_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/change_status_operation_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/change_status_operation_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/enums/change_status_resource_type_pb2.py b/google/ads/google_ads/v1/proto/enums/change_status_resource_type_pb2.py new file mode 100644 index 000000000..07aea1035 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/change_status_resource_type_pb2.py @@ -0,0 +1,133 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/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')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf 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/change_status_resource_type.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_CHANGESTATUSRESOURCETYPEENUM_CHANGESTATUSRESOURCETYPE = _descriptor.EnumDescriptor( + name='ChangeStatusResourceType', + full_name='google.ads.googleads.v1.enums.ChangeStatusResourceTypeEnum.ChangeStatusResourceType', + 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', index=2, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AD_GROUP_AD', index=3, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AD_GROUP_CRITERION', index=4, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CAMPAIGN', index=5, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CAMPAIGN_CRITERION', index=6, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FEED', index=7, number=9, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FEED_ITEM', index=8, number=10, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AD_GROUP_FEED', index=9, number=11, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CAMPAIGN_FEED', index=10, number=12, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AD_GROUP_BID_MODIFIER', index=11, number=13, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=168, + serialized_end=407, +) +_sym_db.RegisterEnumDescriptor(_CHANGESTATUSRESOURCETYPEENUM_CHANGESTATUSRESOURCETYPE) + + +_CHANGESTATUSRESOURCETYPEENUM = _descriptor.Descriptor( + name='ChangeStatusResourceTypeEnum', + full_name='google.ads.googleads.v1.enums.ChangeStatusResourceTypeEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _CHANGESTATUSRESOURCETYPEENUM_CHANGESTATUSRESOURCETYPE, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=135, + serialized_end=407, +) + +_CHANGESTATUSRESOURCETYPEENUM_CHANGESTATUSRESOURCETYPE.containing_type = _CHANGESTATUSRESOURCETYPEENUM +DESCRIPTOR.message_types_by_name['ChangeStatusResourceTypeEnum'] = _CHANGESTATUSRESOURCETYPEENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ChangeStatusResourceTypeEnum = _reflection.GeneratedProtocolMessageType('ChangeStatusResourceTypeEnum', (_message.Message,), dict( + DESCRIPTOR = _CHANGESTATUSRESOURCETYPEENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(ChangeStatusResourceTypeEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/change_status_resource_type_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/change_status_resource_type_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/change_status_resource_type_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/enums/click_type_pb2.py b/google/ads/google_ads/v1/proto/enums/click_type_pb2.py new file mode 100644 index 000000000..6d79158dc --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/click_type_pb2.py @@ -0,0 +1,300 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/enums/click_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/click_type.proto', + package='google.ads.googleads.v1.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\"\x85\x0c\n\rClickTypeEnum\"\xf3\x0b\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\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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_CLICKTYPEENUM_CLICKTYPE = _descriptor.EnumDescriptor( + name='ClickType', + full_name='google.ads.googleads.v1.enums.ClickTypeEnum.ClickType', + 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='APP_DEEPLINK', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BREADCRUMBS', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BROADBAND_PLAN', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CALL_TRACKING', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CALLS', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CLICK_ON_ENGAGEMENT_AD', index=7, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='GET_DIRECTIONS', index=8, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LOCATION_EXPANSION', index=9, number=9, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LOCATION_FORMAT_CALL', index=10, number=10, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LOCATION_FORMAT_DIRECTIONS', index=11, number=11, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LOCATION_FORMAT_IMAGE', index=12, number=12, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LOCATION_FORMAT_LANDING_PAGE', index=13, number=13, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LOCATION_FORMAT_MAP', index=14, number=14, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LOCATION_FORMAT_STORE_INFO', index=15, number=15, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LOCATION_FORMAT_TEXT', index=16, number=16, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MOBILE_CALL_TRACKING', index=17, number=17, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='OFFER_PRINTS', index=18, number=18, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='OTHER', index=19, number=19, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PRODUCT_EXTENSION_CLICKS', index=20, number=20, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PRODUCT_LISTING_AD_CLICKS', index=21, number=21, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SITELINKS', index=22, number=22, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='STORE_LOCATOR', index=23, number=23, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='URL_CLICKS', index=24, number=25, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='VIDEO_APP_STORE_CLICKS', index=25, number=26, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='VIDEO_CALL_TO_ACTION_CLICKS', index=26, number=27, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='VIDEO_CARD_ACTION_HEADLINE_CLICKS', index=27, number=28, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='VIDEO_END_CAP_CLICKS', index=28, number=29, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='VIDEO_WEBSITE_CLICKS', index=29, number=30, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='VISUAL_SITELINKS', index=30, number=31, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='WIRELESS_PLAN', index=31, number=32, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PRODUCT_LISTING_AD_LOCAL', index=32, number=33, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PRODUCT_LISTING_AD_MULTICHANNEL_LOCAL', index=33, number=34, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PRODUCT_LISTING_AD_MULTICHANNEL_ONLINE', index=34, number=35, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PRODUCT_LISTING_ADS_COUPON', index=35, number=36, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PRODUCT_LISTING_AD_TRANSACTABLE', index=36, number=37, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PRODUCT_AD_APP_DEEPLINK', index=37, number=38, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SHOWCASE_AD_CATEGORY_LINK', index=38, number=39, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SHOWCASE_AD_LOCAL_STOREFRONT_LINK', index=39, number=40, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SHOWCASE_AD_ONLINE_PRODUCT_LINK', index=40, number=42, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SHOWCASE_AD_LOCAL_PRODUCT_LINK', index=41, number=43, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PROMOTION_EXTENSION', index=42, number=44, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SWIPEABLE_GALLERY_AD_HEADLINE', index=43, number=45, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SWIPEABLE_GALLERY_AD_SWIPES', index=44, number=46, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SWIPEABLE_GALLERY_AD_SEE_MORE', index=45, number=47, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SWIPEABLE_GALLERY_AD_SITELINK_ONE', index=46, number=48, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SWIPEABLE_GALLERY_AD_SITELINK_TWO', index=47, number=49, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SWIPEABLE_GALLERY_AD_SITELINK_THREE', index=48, number=50, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SWIPEABLE_GALLERY_AD_SITELINK_FOUR', index=49, number=51, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SWIPEABLE_GALLERY_AD_SITELINK_FIVE', index=50, number=52, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='HOTEL_PRICE', index=51, number=53, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PRICE_EXTENSION', index=52, number=54, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='HOTEL_BOOK_ON_GOOGLE_ROOM_SELECTION', index=53, number=55, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=136, + serialized_end=1659, +) +_sym_db.RegisterEnumDescriptor(_CLICKTYPEENUM_CLICKTYPE) + + +_CLICKTYPEENUM = _descriptor.Descriptor( + name='ClickTypeEnum', + full_name='google.ads.googleads.v1.enums.ClickTypeEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _CLICKTYPEENUM_CLICKTYPE, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=118, + serialized_end=1659, +) + +_CLICKTYPEENUM_CLICKTYPE.containing_type = _CLICKTYPEENUM +DESCRIPTOR.message_types_by_name['ClickTypeEnum'] = _CLICKTYPEENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ClickTypeEnum = _reflection.GeneratedProtocolMessageType('ClickTypeEnum', (_message.Message,), dict( + DESCRIPTOR = _CLICKTYPEENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(ClickTypeEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/click_type_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/click_type_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/click_type_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/enums/content_label_type_pb2.py b/google/ads/google_ads/v1/proto/enums/content_label_type_pb2.py new file mode 100644 index 000000000..4542d5cb9 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/content_label_type_pb2.py @@ -0,0 +1,152 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/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_v1/proto/enums/content_label_type.proto', + package='google.ads.googleads.v1.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\025ContentLabelTypeProtoP\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/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/custom_interest_type_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/custom_interest_type_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/custom_interest_type_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/enums/custom_placeholder_field_pb2.py b/google/ads/google_ads/v1/proto/enums/custom_placeholder_field_pb2.py new file mode 100644 index 000000000..b29353ae5 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/custom_placeholder_field_pb2.py @@ -0,0 +1,174 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/enums/custom_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_v1/proto/enums/custom_placeholder_field.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_CUSTOMPLACEHOLDERFIELDENUM_CUSTOMPLACEHOLDERFIELD = _descriptor.EnumDescriptor( + name='CustomPlaceholderField', + full_name='google.ads.googleads.v1.enums.CustomPlaceholderFieldEnum.CustomPlaceholderField', + 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='ID', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ID2', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ITEM_TITLE', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ITEM_SUBTITLE', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ITEM_DESCRIPTION', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ITEM_ADDRESS', index=7, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PRICE', index=8, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FORMATTED_PRICE', index=9, number=9, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SALE_PRICE', index=10, number=10, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FORMATTED_SALE_PRICE', index=11, number=11, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='IMAGE_URL', index=12, number=12, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ITEM_CATEGORY', index=13, number=13, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FINAL_URLS', index=14, number=14, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FINAL_MOBILE_URLS', index=15, number=15, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TRACKING_URL', index=16, number=16, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CONTEXTUAL_KEYWORDS', index=17, number=17, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ANDROID_APP_LINK', index=18, number=18, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SIMILAR_IDS', index=19, number=19, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='IOS_APP_LINK', index=20, number=20, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='IOS_APP_STORE_ID', index=21, number=21, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=163, + serialized_end=578, +) +_sym_db.RegisterEnumDescriptor(_CUSTOMPLACEHOLDERFIELDENUM_CUSTOMPLACEHOLDERFIELD) + + +_CUSTOMPLACEHOLDERFIELDENUM = _descriptor.Descriptor( + name='CustomPlaceholderFieldEnum', + full_name='google.ads.googleads.v1.enums.CustomPlaceholderFieldEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _CUSTOMPLACEHOLDERFIELDENUM_CUSTOMPLACEHOLDERFIELD, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=132, + serialized_end=578, +) + +_CUSTOMPLACEHOLDERFIELDENUM_CUSTOMPLACEHOLDERFIELD.containing_type = _CUSTOMPLACEHOLDERFIELDENUM +DESCRIPTOR.message_types_by_name['CustomPlaceholderFieldEnum'] = _CUSTOMPLACEHOLDERFIELDENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +CustomPlaceholderFieldEnum = _reflection.GeneratedProtocolMessageType('CustomPlaceholderFieldEnum', (_message.Message,), dict( + DESCRIPTOR = _CUSTOMPLACEHOLDERFIELDENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(CustomPlaceholderFieldEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/custom_placeholder_field_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/custom_placeholder_field_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/custom_placeholder_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/v1/proto/enums/customer_match_upload_key_type_pb2.py b/google/ads/google_ads/v1/proto/enums/customer_match_upload_key_type_pb2.py new file mode 100644 index 000000000..bdbf99479 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/customer_match_upload_key_type_pb2.py @@ -0,0 +1,104 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/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')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf 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/customer_match_upload_key_type.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_CUSTOMERMATCHUPLOADKEYTYPEENUM_CUSTOMERMATCHUPLOADKEYTYPE = _descriptor.EnumDescriptor( + name='CustomerMatchUploadKeyType', + full_name='google.ads.googleads.v1.enums.CustomerMatchUploadKeyTypeEnum.CustomerMatchUploadKeyType', + 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='CONTACT_INFO', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CRM_ID', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MOBILE_ADVERTISING_ID', index=4, number=4, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=172, + serialized_end=287, +) +_sym_db.RegisterEnumDescriptor(_CUSTOMERMATCHUPLOADKEYTYPEENUM_CUSTOMERMATCHUPLOADKEYTYPE) + + +_CUSTOMERMATCHUPLOADKEYTYPEENUM = _descriptor.Descriptor( + name='CustomerMatchUploadKeyTypeEnum', + full_name='google.ads.googleads.v1.enums.CustomerMatchUploadKeyTypeEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _CUSTOMERMATCHUPLOADKEYTYPEENUM_CUSTOMERMATCHUPLOADKEYTYPE, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=138, + serialized_end=287, +) + +_CUSTOMERMATCHUPLOADKEYTYPEENUM_CUSTOMERMATCHUPLOADKEYTYPE.containing_type = _CUSTOMERMATCHUPLOADKEYTYPEENUM +DESCRIPTOR.message_types_by_name['CustomerMatchUploadKeyTypeEnum'] = _CUSTOMERMATCHUPLOADKEYTYPEENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +CustomerMatchUploadKeyTypeEnum = _reflection.GeneratedProtocolMessageType('CustomerMatchUploadKeyTypeEnum', (_message.Message,), dict( + DESCRIPTOR = _CUSTOMERMATCHUPLOADKEYTYPEENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(CustomerMatchUploadKeyTypeEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/customer_match_upload_key_type_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/customer_match_upload_key_type_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/customer_match_upload_key_type_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/enums/data_driven_model_status_pb2.py b/google/ads/google_ads/v1/proto/enums/data_driven_model_status_pb2.py new file mode 100644 index 000000000..e4aa1ffc2 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/data_driven_model_status_pb2.py @@ -0,0 +1,108 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/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')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf 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/data_driven_model_status.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_DATADRIVENMODELSTATUSENUM_DATADRIVENMODELSTATUS = _descriptor.EnumDescriptor( + name='DataDrivenModelStatus', + full_name='google.ads.googleads.v1.enums.DataDrivenModelStatusEnum.DataDrivenModelStatus', + 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='AVAILABLE', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='STALE', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='EXPIRED', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NEVER_GENERATED', index=5, number=5, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=161, + serialized_end=274, +) +_sym_db.RegisterEnumDescriptor(_DATADRIVENMODELSTATUSENUM_DATADRIVENMODELSTATUS) + + +_DATADRIVENMODELSTATUSENUM = _descriptor.Descriptor( + name='DataDrivenModelStatusEnum', + full_name='google.ads.googleads.v1.enums.DataDrivenModelStatusEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _DATADRIVENMODELSTATUSENUM_DATADRIVENMODELSTATUS, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=132, + serialized_end=274, +) + +_DATADRIVENMODELSTATUSENUM_DATADRIVENMODELSTATUS.containing_type = _DATADRIVENMODELSTATUSENUM +DESCRIPTOR.message_types_by_name['DataDrivenModelStatusEnum'] = _DATADRIVENMODELSTATUSENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +DataDrivenModelStatusEnum = _reflection.GeneratedProtocolMessageType('DataDrivenModelStatusEnum', (_message.Message,), dict( + DESCRIPTOR = _DATADRIVENMODELSTATUSENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(DataDrivenModelStatusEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/data_driven_model_status_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/data_driven_model_status_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/data_driven_model_status_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/enums/day_of_week_pb2.py b/google/ads/google_ads/v1/proto/enums/day_of_week_pb2.py new file mode 100644 index 000000000..e87bed85d --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/day_of_week_pb2.py @@ -0,0 +1,120 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/enums/day_of_week.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf 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/day_of_week.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_DAYOFWEEKENUM_DAYOFWEEK = _descriptor.EnumDescriptor( + name='DayOfWeek', + full_name='google.ads.googleads.v1.enums.DayOfWeekEnum.DayOfWeek', + 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='MONDAY', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TUESDAY', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='WEDNESDAY', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='THURSDAY', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FRIDAY', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SATURDAY', index=7, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SUNDAY', index=8, number=8, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=137, + serialized_end=270, +) +_sym_db.RegisterEnumDescriptor(_DAYOFWEEKENUM_DAYOFWEEK) + + +_DAYOFWEEKENUM = _descriptor.Descriptor( + name='DayOfWeekEnum', + full_name='google.ads.googleads.v1.enums.DayOfWeekEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _DAYOFWEEKENUM_DAYOFWEEK, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=119, + serialized_end=270, +) + +_DAYOFWEEKENUM_DAYOFWEEK.containing_type = _DAYOFWEEKENUM +DESCRIPTOR.message_types_by_name['DayOfWeekEnum'] = _DAYOFWEEKENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +DayOfWeekEnum = _reflection.GeneratedProtocolMessageType('DayOfWeekEnum', (_message.Message,), dict( + DESCRIPTOR = _DAYOFWEEKENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(DayOfWeekEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/day_of_week_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/day_of_week_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/day_of_week_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/enums/device_pb2.py b/google/ads/google_ads/v1/proto/enums/device_pb2.py new file mode 100644 index 000000000..167197d9d --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/device_pb2.py @@ -0,0 +1,108 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/enums/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/device.proto', + package='google.ads.googleads.v1.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\"d\n\nDeviceEnum\"V\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\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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_DEVICEENUM_DEVICE = _descriptor.EnumDescriptor( + name='Device', + full_name='google.ads.googleads.v1.enums.DeviceEnum.Device', + 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='TABLET', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DESKTOP', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='OTHER', index=5, number=5, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=127, + serialized_end=213, +) +_sym_db.RegisterEnumDescriptor(_DEVICEENUM_DEVICE) + + +_DEVICEENUM = _descriptor.Descriptor( + name='DeviceEnum', + full_name='google.ads.googleads.v1.enums.DeviceEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _DEVICEENUM_DEVICE, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=113, + serialized_end=213, +) + +_DEVICEENUM_DEVICE.containing_type = _DEVICEENUM +DESCRIPTOR.message_types_by_name['DeviceEnum'] = _DEVICEENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +DeviceEnum = _reflection.GeneratedProtocolMessageType('DeviceEnum', (_message.Message,), dict( + DESCRIPTOR = _DEVICEENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(DeviceEnum) + + +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/v1/proto/enums/device_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/device_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/enums/display_ad_format_setting_pb2.py b/google/ads/google_ads/v1/proto/enums/display_ad_format_setting_pb2.py new file mode 100644 index 000000000..1092097a1 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/display_ad_format_setting_pb2.py @@ -0,0 +1,104 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/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')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf 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/display_ad_format_setting.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_DISPLAYADFORMATSETTINGENUM_DISPLAYADFORMATSETTING = _descriptor.EnumDescriptor( + name='DisplayAdFormatSetting', + full_name='google.ads.googleads.v1.enums.DisplayAdFormatSettingEnum.DisplayAdFormatSetting', + 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='ALL_FORMATS', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NON_NATIVE', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NATIVE', index=4, number=4, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=163, + serialized_end=262, +) +_sym_db.RegisterEnumDescriptor(_DISPLAYADFORMATSETTINGENUM_DISPLAYADFORMATSETTING) + + +_DISPLAYADFORMATSETTINGENUM = _descriptor.Descriptor( + name='DisplayAdFormatSettingEnum', + full_name='google.ads.googleads.v1.enums.DisplayAdFormatSettingEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _DISPLAYADFORMATSETTINGENUM_DISPLAYADFORMATSETTING, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=133, + serialized_end=262, +) + +_DISPLAYADFORMATSETTINGENUM_DISPLAYADFORMATSETTING.containing_type = _DISPLAYADFORMATSETTINGENUM +DESCRIPTOR.message_types_by_name['DisplayAdFormatSettingEnum'] = _DISPLAYADFORMATSETTINGENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +DisplayAdFormatSettingEnum = _reflection.GeneratedProtocolMessageType('DisplayAdFormatSettingEnum', (_message.Message,), dict( + DESCRIPTOR = _DISPLAYADFORMATSETTINGENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(DisplayAdFormatSettingEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/display_ad_format_setting_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/display_ad_format_setting_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/display_ad_format_setting_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/enums/dsa_page_feed_criterion_field_pb2.py b/google/ads/google_ads/v1/proto/enums/dsa_page_feed_criterion_field_pb2.py new file mode 100644 index 000000000..e18b18b40 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/dsa_page_feed_criterion_field_pb2.py @@ -0,0 +1,100 @@ +# 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/dsa_page_feed_criterion_field_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/dsa_page_feed_criterion_field_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/dsa_page_feed_criterion_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/v1/proto/enums/education_placeholder_field_pb2.py b/google/ads/google_ads/v1/proto/enums/education_placeholder_field_pb2.py new file mode 100644 index 000000000..3da9e56fd --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/education_placeholder_field_pb2.py @@ -0,0 +1,162 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/enums/education_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_v1/proto/enums/education_placeholder_field.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_EDUCATIONPLACEHOLDERFIELDENUM_EDUCATIONPLACEHOLDERFIELD = _descriptor.EnumDescriptor( + name='EducationPlaceholderField', + full_name='google.ads.googleads.v1.enums.EducationPlaceholderFieldEnum.EducationPlaceholderField', + 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='PROGRAM_ID', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LOCATION_ID', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PROGRAM_NAME', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AREA_OF_STUDY', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PROGRAM_DESCRIPTION', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SCHOOL_NAME', index=7, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ADDRESS', index=8, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='THUMBNAIL_IMAGE_URL', index=9, number=9, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ALTERNATIVE_THUMBNAIL_IMAGE_URL', index=10, number=10, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FINAL_URLS', index=11, number=11, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FINAL_MOBILE_URLS', index=12, number=12, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TRACKING_URL', index=13, number=13, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CONTEXTUAL_KEYWORDS', index=14, number=14, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ANDROID_APP_LINK', index=15, number=15, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SIMILAR_PROGRAM_IDS', index=16, number=16, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='IOS_APP_LINK', index=17, number=17, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='IOS_APP_STORE_ID', index=18, number=18, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=169, + serialized_end=582, +) +_sym_db.RegisterEnumDescriptor(_EDUCATIONPLACEHOLDERFIELDENUM_EDUCATIONPLACEHOLDERFIELD) + + +_EDUCATIONPLACEHOLDERFIELDENUM = _descriptor.Descriptor( + name='EducationPlaceholderFieldEnum', + full_name='google.ads.googleads.v1.enums.EducationPlaceholderFieldEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _EDUCATIONPLACEHOLDERFIELDENUM_EDUCATIONPLACEHOLDERFIELD, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=135, + serialized_end=582, +) + +_EDUCATIONPLACEHOLDERFIELDENUM_EDUCATIONPLACEHOLDERFIELD.containing_type = _EDUCATIONPLACEHOLDERFIELDENUM +DESCRIPTOR.message_types_by_name['EducationPlaceholderFieldEnum'] = _EDUCATIONPLACEHOLDERFIELDENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +EducationPlaceholderFieldEnum = _reflection.GeneratedProtocolMessageType('EducationPlaceholderFieldEnum', (_message.Message,), dict( + DESCRIPTOR = _EDUCATIONPLACEHOLDERFIELDENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(EducationPlaceholderFieldEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/education_placeholder_field_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/education_placeholder_field_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/education_placeholder_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/v1/proto/enums/extension_setting_device_pb2.py b/google/ads/google_ads/v1/proto/enums/extension_setting_device_pb2.py new file mode 100644 index 000000000..aaeb9e36f --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/extension_setting_device_pb2.py @@ -0,0 +1,100 @@ +# 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_setting_device_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/extension_setting_device_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/extension_setting_device_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/enums/extension_type_pb2.py b/google/ads/google_ads/v1/proto/enums/extension_type_pb2.py new file mode 100644 index 000000000..12c029e36 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/extension_type_pb2.py @@ -0,0 +1,133 @@ +# 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\"\xc6\x01\n\x11\x45xtensionTypeEnum\"\xb0\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\x42\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), + ], + containing_type=None, + serialized_options=None, + serialized_start=144, + serialized_end=320, +) +_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=320, +) + +_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/extension_type_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/extension_type_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/extension_type_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/enums/external_conversion_source_pb2.py b/google/ads/google_ads/v1/proto/enums/external_conversion_source_pb2.py new file mode 100644 index 000000000..c0347afb1 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/external_conversion_source_pb2.py @@ -0,0 +1,177 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/enums/external_conversion_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/external_conversion_source.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_EXTERNALCONVERSIONSOURCEENUM_EXTERNALCONVERSIONSOURCE = _descriptor.EnumDescriptor( + name='ExternalConversionSource', + full_name='google.ads.googleads.v1.enums.ExternalConversionSourceEnum.ExternalConversionSource', + 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='WEBPAGE', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ANALYTICS', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UPLOAD', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AD_CALL_METRICS', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='WEBSITE_CALL_METRICS', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='STORE_VISITS', index=7, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ANDROID_IN_APP', index=8, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='IOS_IN_APP', index=9, number=9, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='IOS_FIRST_OPEN', index=10, number=10, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='APP_UNSPECIFIED', index=11, number=11, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ANDROID_FIRST_OPEN', index=12, number=12, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UPLOAD_CALLS', index=13, number=13, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FIREBASE', index=14, number=14, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CLICK_TO_CALL', index=15, number=15, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SALESFORCE', index=16, number=16, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='STORE_SALES_CRM', index=17, number=17, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='STORE_SALES_PAYMENT_NETWORK', index=18, number=18, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='GOOGLE_PLAY', index=19, number=19, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='THIRD_PARTY_APP_ANALYTICS', index=20, number=20, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='GOOGLE_ATTRIBUTION', index=21, number=21, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='STORE_SALES_DIRECT', index=22, number=22, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=167, + serialized_end=646, +) +_sym_db.RegisterEnumDescriptor(_EXTERNALCONVERSIONSOURCEENUM_EXTERNALCONVERSIONSOURCE) + + +_EXTERNALCONVERSIONSOURCEENUM = _descriptor.Descriptor( + name='ExternalConversionSourceEnum', + full_name='google.ads.googleads.v1.enums.ExternalConversionSourceEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _EXTERNALCONVERSIONSOURCEENUM_EXTERNALCONVERSIONSOURCE, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=134, + serialized_end=646, +) + +_EXTERNALCONVERSIONSOURCEENUM_EXTERNALCONVERSIONSOURCE.containing_type = _EXTERNALCONVERSIONSOURCEENUM +DESCRIPTOR.message_types_by_name['ExternalConversionSourceEnum'] = _EXTERNALCONVERSIONSOURCEENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ExternalConversionSourceEnum = _reflection.GeneratedProtocolMessageType('ExternalConversionSourceEnum', (_message.Message,), dict( + DESCRIPTOR = _EXTERNALCONVERSIONSOURCEENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(ExternalConversionSourceEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/external_conversion_source_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/external_conversion_source_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/external_conversion_source_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/enums/feed_attribute_type_pb2.py b/google/ads/google_ads/v1/proto/enums/feed_attribute_type_pb2.py new file mode 100644 index 000000000..3bfc7dbb7 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/feed_attribute_type_pb2.py @@ -0,0 +1,144 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/enums/feed_attribute_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_attribute_type.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_FEEDATTRIBUTETYPEENUM_FEEDATTRIBUTETYPE = _descriptor.EnumDescriptor( + name='FeedAttributeType', + full_name='google.ads.googleads.v1.enums.FeedAttributeTypeEnum.FeedAttributeType', + 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='INT64', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DOUBLE', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='STRING', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BOOLEAN', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='URL', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DATE_TIME', index=7, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INT64_LIST', index=8, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DOUBLE_LIST', index=9, number=9, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='STRING_LIST', index=10, number=10, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BOOLEAN_LIST', index=11, number=11, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='URL_LIST', index=12, number=12, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DATE_TIME_LIST', index=13, number=13, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PRICE', index=14, number=14, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=153, + serialized_end=387, +) +_sym_db.RegisterEnumDescriptor(_FEEDATTRIBUTETYPEENUM_FEEDATTRIBUTETYPE) + + +_FEEDATTRIBUTETYPEENUM = _descriptor.Descriptor( + name='FeedAttributeTypeEnum', + full_name='google.ads.googleads.v1.enums.FeedAttributeTypeEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _FEEDATTRIBUTETYPEENUM_FEEDATTRIBUTETYPE, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=127, + serialized_end=387, +) + +_FEEDATTRIBUTETYPEENUM_FEEDATTRIBUTETYPE.containing_type = _FEEDATTRIBUTETYPEENUM +DESCRIPTOR.message_types_by_name['FeedAttributeTypeEnum'] = _FEEDATTRIBUTETYPEENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +FeedAttributeTypeEnum = _reflection.GeneratedProtocolMessageType('FeedAttributeTypeEnum', (_message.Message,), dict( + DESCRIPTOR = _FEEDATTRIBUTETYPEENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(FeedAttributeTypeEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/feed_attribute_type_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/feed_attribute_type_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/feed_attribute_type_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/enums/feed_item_quality_approval_status_pb2.py b/google/ads/google_ads/v1/proto/enums/feed_item_quality_approval_status_pb2.py new file mode 100644 index 000000000..bf3b9f41a --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/feed_item_quality_approval_status_pb2.py @@ -0,0 +1,101 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/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')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf 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_quality_approval_status.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_FEEDITEMQUALITYAPPROVALSTATUSENUM_FEEDITEMQUALITYAPPROVALSTATUS = _descriptor.EnumDescriptor( + name='FeedItemQualityApprovalStatus', + full_name='google.ads.googleads.v1.enums.FeedItemQualityApprovalStatusEnum.FeedItemQualityApprovalStatus', + 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='APPROVED', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DISAPPROVED', index=3, number=3, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=178, + serialized_end=270, +) +_sym_db.RegisterEnumDescriptor(_FEEDITEMQUALITYAPPROVALSTATUSENUM_FEEDITEMQUALITYAPPROVALSTATUS) + + +_FEEDITEMQUALITYAPPROVALSTATUSENUM = _descriptor.Descriptor( + name='FeedItemQualityApprovalStatusEnum', + full_name='google.ads.googleads.v1.enums.FeedItemQualityApprovalStatusEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _FEEDITEMQUALITYAPPROVALSTATUSENUM_FEEDITEMQUALITYAPPROVALSTATUS, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=141, + serialized_end=270, +) + +_FEEDITEMQUALITYAPPROVALSTATUSENUM_FEEDITEMQUALITYAPPROVALSTATUS.containing_type = _FEEDITEMQUALITYAPPROVALSTATUSENUM +DESCRIPTOR.message_types_by_name['FeedItemQualityApprovalStatusEnum'] = _FEEDITEMQUALITYAPPROVALSTATUSENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +FeedItemQualityApprovalStatusEnum = _reflection.GeneratedProtocolMessageType('FeedItemQualityApprovalStatusEnum', (_message.Message,), dict( + DESCRIPTOR = _FEEDITEMQUALITYAPPROVALSTATUSENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(FeedItemQualityApprovalStatusEnum) + + +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/v1/proto/enums/feed_item_quality_approval_status_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/feed_item_quality_approval_status_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/enums/feed_item_quality_disapproval_reason_pb2.py b/google/ads/google_ads/v1/proto/enums/feed_item_quality_disapproval_reason_pb2.py new file mode 100644 index 000000000..098c78aef --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/feed_item_quality_disapproval_reason_pb2.py @@ -0,0 +1,165 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/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')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf 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_quality_disapproval_reason.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_FEEDITEMQUALITYDISAPPROVALREASONENUM_FEEDITEMQUALITYDISAPPROVALREASON = _descriptor.EnumDescriptor( + name='FeedItemQualityDisapprovalReason', + full_name='google.ads.googleads.v1.enums.FeedItemQualityDisapprovalReasonEnum.FeedItemQualityDisapprovalReason', + 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='PRICE_TABLE_REPETITIVE_HEADERS', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PRICE_TABLE_REPETITIVE_DESCRIPTION', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PRICE_TABLE_INCONSISTENT_ROWS', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PRICE_DESCRIPTION_HAS_PRICE_QUALIFIERS', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PRICE_UNSUPPORTED_LANGUAGE', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PRICE_TABLE_ROW_HEADER_TABLE_TYPE_MISMATCH', index=7, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PRICE_TABLE_ROW_HEADER_HAS_PROMOTIONAL_TEXT', index=8, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PRICE_TABLE_ROW_DESCRIPTION_NOT_RELEVANT', index=9, number=9, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PRICE_TABLE_ROW_DESCRIPTION_HAS_PROMOTIONAL_TEXT', index=10, number=10, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PRICE_TABLE_ROW_HEADER_DESCRIPTION_REPETITIVE', index=11, number=11, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PRICE_TABLE_ROW_UNRATEABLE', index=12, number=12, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PRICE_TABLE_ROW_PRICE_INVALID', index=13, number=13, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PRICE_TABLE_ROW_URL_INVALID', index=14, number=14, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PRICE_HEADER_OR_DESCRIPTION_HAS_PRICE', index=15, number=15, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='STRUCTURED_SNIPPETS_HEADER_POLICY_VIOLATED', index=16, number=16, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='STRUCTURED_SNIPPETS_REPEATED_VALUES', index=17, number=17, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='STRUCTURED_SNIPPETS_EDITORIAL_GUIDELINES', index=18, number=18, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='STRUCTURED_SNIPPETS_HAS_PROMOTIONAL_TEXT', index=19, number=19, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=185, + serialized_end=1008, +) +_sym_db.RegisterEnumDescriptor(_FEEDITEMQUALITYDISAPPROVALREASONENUM_FEEDITEMQUALITYDISAPPROVALREASON) + + +_FEEDITEMQUALITYDISAPPROVALREASONENUM = _descriptor.Descriptor( + name='FeedItemQualityDisapprovalReasonEnum', + full_name='google.ads.googleads.v1.enums.FeedItemQualityDisapprovalReasonEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _FEEDITEMQUALITYDISAPPROVALREASONENUM_FEEDITEMQUALITYDISAPPROVALREASON, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=144, + serialized_end=1008, +) + +_FEEDITEMQUALITYDISAPPROVALREASONENUM_FEEDITEMQUALITYDISAPPROVALREASON.containing_type = _FEEDITEMQUALITYDISAPPROVALREASONENUM +DESCRIPTOR.message_types_by_name['FeedItemQualityDisapprovalReasonEnum'] = _FEEDITEMQUALITYDISAPPROVALREASONENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +FeedItemQualityDisapprovalReasonEnum = _reflection.GeneratedProtocolMessageType('FeedItemQualityDisapprovalReasonEnum', (_message.Message,), dict( + DESCRIPTOR = _FEEDITEMQUALITYDISAPPROVALREASONENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(FeedItemQualityDisapprovalReasonEnum) + + +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/v1/proto/enums/feed_item_quality_disapproval_reason_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/feed_item_quality_disapproval_reason_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/enums/feed_item_status_pb2.py b/google/ads/google_ads/v1/proto/enums/feed_item_status_pb2.py new file mode 100644 index 000000000..10303202c --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/feed_item_status_pb2.py @@ -0,0 +1,100 @@ +# 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_status_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/feed_item_status_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/feed_item_status_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/enums/feed_item_target_device_pb2.py b/google/ads/google_ads/v1/proto/enums/feed_item_target_device_pb2.py new file mode 100644 index 000000000..9b8d8fef8 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/feed_item_target_device_pb2.py @@ -0,0 +1,97 @@ +# 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_device_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/feed_item_target_device_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/feed_item_target_device_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/enums/feed_item_target_type_pb2.py b/google/ads/google_ads/v1/proto/enums/feed_item_target_type_pb2.py new file mode 100644 index 000000000..0d4390e6e --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/feed_item_target_type_pb2.py @@ -0,0 +1,104 @@ +# 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_item_target_type_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/feed_item_target_type_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/feed_item_target_type_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/enums/feed_item_validation_status_pb2.py b/google/ads/google_ads/v1/proto/enums/feed_item_validation_status_pb2.py new file mode 100644 index 000000000..be6e62771 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/feed_item_validation_status_pb2.py @@ -0,0 +1,105 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/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')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf 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_validation_status.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_FEEDITEMVALIDATIONSTATUSENUM_FEEDITEMVALIDATIONSTATUS = _descriptor.EnumDescriptor( + name='FeedItemValidationStatus', + full_name='google.ads.googleads.v1.enums.FeedItemValidationStatusEnum.FeedItemValidationStatus', + 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='INVALID', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='VALID', index=4, number=4, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=166, + serialized_end=259, +) +_sym_db.RegisterEnumDescriptor(_FEEDITEMVALIDATIONSTATUSENUM_FEEDITEMVALIDATIONSTATUS) + + +_FEEDITEMVALIDATIONSTATUSENUM = _descriptor.Descriptor( + name='FeedItemValidationStatusEnum', + full_name='google.ads.googleads.v1.enums.FeedItemValidationStatusEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _FEEDITEMVALIDATIONSTATUSENUM_FEEDITEMVALIDATIONSTATUS, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=134, + serialized_end=259, +) + +_FEEDITEMVALIDATIONSTATUSENUM_FEEDITEMVALIDATIONSTATUS.containing_type = _FEEDITEMVALIDATIONSTATUSENUM +DESCRIPTOR.message_types_by_name['FeedItemValidationStatusEnum'] = _FEEDITEMVALIDATIONSTATUSENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +FeedItemValidationStatusEnum = _reflection.GeneratedProtocolMessageType('FeedItemValidationStatusEnum', (_message.Message,), dict( + DESCRIPTOR = _FEEDITEMVALIDATIONSTATUSENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(FeedItemValidationStatusEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/feed_item_validation_status_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/feed_item_validation_status_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/feed_item_validation_status_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/enums/feed_link_status_pb2.py b/google/ads/google_ads/v1/proto/enums/feed_link_status_pb2.py new file mode 100644 index 000000000..18568746f --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/feed_link_status_pb2.py @@ -0,0 +1,100 @@ +# 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_link_status_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/feed_link_status_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/feed_link_status_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/enums/feed_mapping_criterion_type_pb2.py b/google/ads/google_ads/v1/proto/enums/feed_mapping_criterion_type_pb2.py new file mode 100644 index 000000000..0cacf5728 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/feed_mapping_criterion_type_pb2.py @@ -0,0 +1,101 @@ +# 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_criterion_type_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/feed_mapping_criterion_type_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/feed_mapping_criterion_type_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/enums/feed_mapping_status_pb2.py b/google/ads/google_ads/v1/proto/enums/feed_mapping_status_pb2.py new file mode 100644 index 000000000..c982b4f20 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/feed_mapping_status_pb2.py @@ -0,0 +1,100 @@ +# 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_mapping_status_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/feed_mapping_status_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/feed_mapping_status_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/enums/feed_origin_pb2.py b/google/ads/google_ads/v1/proto/enums/feed_origin_pb2.py new file mode 100644 index 000000000..bdaed593b --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/feed_origin_pb2.py @@ -0,0 +1,100 @@ +# 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_origin_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/feed_origin_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/feed_origin_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/enums/feed_status_pb2.py b/google/ads/google_ads/v1/proto/enums/feed_status_pb2.py new file mode 100644 index 000000000..5c7db1e00 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/feed_status_pb2.py @@ -0,0 +1,100 @@ +# 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/feed_status_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/feed_status_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/feed_status_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/enums/flight_placeholder_field_pb2.py b/google/ads/google_ads/v1/proto/enums/flight_placeholder_field_pb2.py new file mode 100644 index 000000000..6294c5d2e --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/flight_placeholder_field_pb2.py @@ -0,0 +1,162 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/enums/flight_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_v1/proto/enums/flight_placeholder_field.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_FLIGHTPLACEHOLDERFIELDENUM_FLIGHTPLACEHOLDERFIELD = _descriptor.EnumDescriptor( + name='FlightPlaceholderField', + full_name='google.ads.googleads.v1.enums.FlightPlaceholderFieldEnum.FlightPlaceholderField', + 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='DESTINATION_ID', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ORIGIN_ID', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FLIGHT_DESCRIPTION', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ORIGIN_NAME', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DESTINATION_NAME', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FLIGHT_PRICE', index=7, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FORMATTED_PRICE', index=8, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FLIGHT_SALE_PRICE', index=9, number=9, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FORMATTED_SALE_PRICE', index=10, number=10, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='IMAGE_URL', index=11, number=11, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FINAL_URLS', index=12, number=12, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FINAL_MOBILE_URLS', index=13, number=13, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TRACKING_URL', index=14, number=14, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ANDROID_APP_LINK', index=15, number=15, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SIMILAR_DESTINATION_IDS', index=16, number=16, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='IOS_APP_LINK', index=17, number=17, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='IOS_APP_STORE_ID', index=18, number=18, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=163, + serialized_end=566, +) +_sym_db.RegisterEnumDescriptor(_FLIGHTPLACEHOLDERFIELDENUM_FLIGHTPLACEHOLDERFIELD) + + +_FLIGHTPLACEHOLDERFIELDENUM = _descriptor.Descriptor( + name='FlightPlaceholderFieldEnum', + full_name='google.ads.googleads.v1.enums.FlightPlaceholderFieldEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _FLIGHTPLACEHOLDERFIELDENUM_FLIGHTPLACEHOLDERFIELD, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=132, + serialized_end=566, +) + +_FLIGHTPLACEHOLDERFIELDENUM_FLIGHTPLACEHOLDERFIELD.containing_type = _FLIGHTPLACEHOLDERFIELDENUM +DESCRIPTOR.message_types_by_name['FlightPlaceholderFieldEnum'] = _FLIGHTPLACEHOLDERFIELDENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +FlightPlaceholderFieldEnum = _reflection.GeneratedProtocolMessageType('FlightPlaceholderFieldEnum', (_message.Message,), dict( + DESCRIPTOR = _FLIGHTPLACEHOLDERFIELDENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(FlightPlaceholderFieldEnum) + + +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/v1/proto/enums/flight_placeholder_field_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/flight_placeholder_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/v1/proto/enums/frequency_cap_event_type_pb2.py b/google/ads/google_ads/v1/proto/enums/frequency_cap_event_type_pb2.py new file mode 100644 index 000000000..20c2a8d10 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/frequency_cap_event_type_pb2.py @@ -0,0 +1,100 @@ +# 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_event_type_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/frequency_cap_event_type_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/frequency_cap_event_type_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/enums/frequency_cap_level_pb2.py b/google/ads/google_ads/v1/proto/enums/frequency_cap_level_pb2.py new file mode 100644 index 000000000..5bd240041 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/frequency_cap_level_pb2.py @@ -0,0 +1,105 @@ +# 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/frequency_cap_level_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/frequency_cap_level_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/frequency_cap_level_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/enums/frequency_cap_time_unit_pb2.py b/google/ads/google_ads/v1/proto/enums/frequency_cap_time_unit_pb2.py new file mode 100644 index 000000000..20007cc4d --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/frequency_cap_time_unit_pb2.py @@ -0,0 +1,104 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/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')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf 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_time_unit.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_FREQUENCYCAPTIMEUNITENUM_FREQUENCYCAPTIMEUNIT = _descriptor.EnumDescriptor( + name='FrequencyCapTimeUnit', + full_name='google.ads.googleads.v1.enums.FrequencyCapTimeUnitEnum.FrequencyCapTimeUnit', + 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='DAY', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='WEEK', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MONTH', index=4, number=4, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=158, + serialized_end=240, +) +_sym_db.RegisterEnumDescriptor(_FREQUENCYCAPTIMEUNITENUM_FREQUENCYCAPTIMEUNIT) + + +_FREQUENCYCAPTIMEUNITENUM = _descriptor.Descriptor( + name='FrequencyCapTimeUnitEnum', + full_name='google.ads.googleads.v1.enums.FrequencyCapTimeUnitEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _FREQUENCYCAPTIMEUNITENUM_FREQUENCYCAPTIMEUNIT, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=130, + serialized_end=240, +) + +_FREQUENCYCAPTIMEUNITENUM_FREQUENCYCAPTIMEUNIT.containing_type = _FREQUENCYCAPTIMEUNITENUM +DESCRIPTOR.message_types_by_name['FrequencyCapTimeUnitEnum'] = _FREQUENCYCAPTIMEUNITENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +FrequencyCapTimeUnitEnum = _reflection.GeneratedProtocolMessageType('FrequencyCapTimeUnitEnum', (_message.Message,), dict( + DESCRIPTOR = _FREQUENCYCAPTIMEUNITENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(FrequencyCapTimeUnitEnum) + + +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/v1/proto/enums/frequency_cap_time_unit_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/frequency_cap_time_unit_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/enums/gender_type_pb2.py b/google/ads/google_ads/v1/proto/enums/gender_type_pb2.py new file mode 100644 index 000000000..7c55de69c --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/gender_type_pb2.py @@ -0,0 +1,104 @@ +# 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/gender_type_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/gender_type_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/gender_type_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/enums/geo_target_constant_status_pb2.py b/google/ads/google_ads/v1/proto/enums/geo_target_constant_status_pb2.py new file mode 100644 index 000000000..a821b114f --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/geo_target_constant_status_pb2.py @@ -0,0 +1,100 @@ +# 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_target_constant_status_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/geo_target_constant_status_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/geo_target_constant_status_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/enums/geo_targeting_restriction_pb2.py b/google/ads/google_ads/v1/proto/enums/geo_targeting_restriction_pb2.py new file mode 100644 index 000000000..4a2dd0c25 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/geo_targeting_restriction_pb2.py @@ -0,0 +1,96 @@ +# 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_restriction_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/geo_targeting_restriction_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/geo_targeting_restriction_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/enums/geo_targeting_type_pb2.py b/google/ads/google_ads/v1/proto/enums/geo_targeting_type_pb2.py new file mode 100644 index 000000000..a46c372ea --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/geo_targeting_type_pb2.py @@ -0,0 +1,100 @@ +# 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/interaction_type_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/interaction_type_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/interaction_type_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/enums/job_placeholder_field_pb2.py b/google/ads/google_ads/v1/proto/enums/job_placeholder_field_pb2.py new file mode 100644 index 000000000..d95110972 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/job_placeholder_field_pb2.py @@ -0,0 +1,162 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/enums/job_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_v1/proto/enums/job_placeholder_field.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_JOBPLACEHOLDERFIELDENUM_JOBPLACEHOLDERFIELD = _descriptor.EnumDescriptor( + name='JobPlaceholderField', + full_name='google.ads.googleads.v1.enums.JobPlaceholderFieldEnum.JobPlaceholderField', + 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='JOB_ID', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LOCATION_ID', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TITLE', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SUBTITLE', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DESCRIPTION', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='IMAGE_URL', index=7, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CATEGORY', index=8, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CONTEXTUAL_KEYWORDS', index=9, number=9, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ADDRESS', index=10, number=10, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SALARY', index=11, number=11, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FINAL_URLS', index=12, number=12, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FINAL_MOBILE_URLS', index=13, number=14, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TRACKING_URL', index=14, number=15, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ANDROID_APP_LINK', index=15, number=16, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SIMILAR_JOB_IDS', index=16, number=17, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='IOS_APP_LINK', index=17, number=18, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='IOS_APP_STORE_ID', index=18, number=19, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=157, + serialized_end=498, +) +_sym_db.RegisterEnumDescriptor(_JOBPLACEHOLDERFIELDENUM_JOBPLACEHOLDERFIELD) + + +_JOBPLACEHOLDERFIELDENUM = _descriptor.Descriptor( + name='JobPlaceholderFieldEnum', + full_name='google.ads.googleads.v1.enums.JobPlaceholderFieldEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _JOBPLACEHOLDERFIELDENUM_JOBPLACEHOLDERFIELD, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=129, + serialized_end=498, +) + +_JOBPLACEHOLDERFIELDENUM_JOBPLACEHOLDERFIELD.containing_type = _JOBPLACEHOLDERFIELDENUM +DESCRIPTOR.message_types_by_name['JobPlaceholderFieldEnum'] = _JOBPLACEHOLDERFIELDENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +JobPlaceholderFieldEnum = _reflection.GeneratedProtocolMessageType('JobPlaceholderFieldEnum', (_message.Message,), dict( + DESCRIPTOR = _JOBPLACEHOLDERFIELDENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(JobPlaceholderFieldEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/job_placeholder_field_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/job_placeholder_field_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/job_placeholder_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/v1/proto/enums/keyword_match_type_pb2.py b/google/ads/google_ads/v1/proto/enums/keyword_match_type_pb2.py new file mode 100644 index 000000000..7adb1c830 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/keyword_match_type_pb2.py @@ -0,0 +1,104 @@ +# 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/keyword_plan_network_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/keyword_plan_network_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/keyword_plan_network_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/enums/label_status_pb2.py b/google/ads/google_ads/v1/proto/enums/label_status_pb2.py new file mode 100644 index 000000000..2840ade7f --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/label_status_pb2.py @@ -0,0 +1,100 @@ +# 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/label_status_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/label_status_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/label_status_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/enums/listing_custom_attribute_index_pb2.py b/google/ads/google_ads/v1/proto/enums/listing_custom_attribute_index_pb2.py new file mode 100644 index 000000000..828dd3471 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/listing_custom_attribute_index_pb2.py @@ -0,0 +1,112 @@ +# 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_custom_attribute_index_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/listing_custom_attribute_index_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/listing_custom_attribute_index_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/enums/listing_group_type_pb2.py b/google/ads/google_ads/v1/proto/enums/listing_group_type_pb2.py new file mode 100644 index 000000000..091dc0f30 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/listing_group_type_pb2.py @@ -0,0 +1,100 @@ +# 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/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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_PARENTALSTATUSTYPEENUM_PARENTALSTATUSTYPE = _descriptor.EnumDescriptor( + name='ParentalStatusType', + full_name='google.ads.googleads.v1.enums.ParentalStatusTypeEnum.ParentalStatusType', + 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='PARENT', index=2, number=300, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NOT_A_PARENT', index=3, number=301, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNDETERMINED', index=4, number=302, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=153, + serialized_end=254, +) +_sym_db.RegisterEnumDescriptor(_PARENTALSTATUSTYPEENUM_PARENTALSTATUSTYPE) + + +_PARENTALSTATUSTYPEENUM = _descriptor.Descriptor( + name='ParentalStatusTypeEnum', + full_name='google.ads.googleads.v1.enums.ParentalStatusTypeEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _PARENTALSTATUSTYPEENUM_PARENTALSTATUSTYPE, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=127, + serialized_end=254, +) + +_PARENTALSTATUSTYPEENUM_PARENTALSTATUSTYPE.containing_type = _PARENTALSTATUSTYPEENUM +DESCRIPTOR.message_types_by_name['ParentalStatusTypeEnum'] = _PARENTALSTATUSTYPEENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ParentalStatusTypeEnum = _reflection.GeneratedProtocolMessageType('ParentalStatusTypeEnum', (_message.Message,), dict( + DESCRIPTOR = _PARENTALSTATUSTYPEENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(ParentalStatusTypeEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/parental_status_type_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/parental_status_type_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/parental_status_type_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/enums/placeholder_type_pb2.py b/google/ads/google_ads/v1/proto/enums/placeholder_type_pb2.py new file mode 100644 index 000000000..ecc1cd103 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/placeholder_type_pb2.py @@ -0,0 +1,169 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/enums/placeholder_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/placeholder_type.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_PLACEHOLDERTYPEENUM_PLACEHOLDERTYPE = _descriptor.EnumDescriptor( + name='PlaceholderType', + full_name='google.ads.googleads.v1.enums.PlaceholderTypeEnum.PlaceholderType', + 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='SITELINK', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CALL', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='APP', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LOCATION', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AFFILIATE_LOCATION', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CALLOUT', index=7, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='STRUCTURED_SNIPPET', index=8, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MESSAGE', index=9, number=9, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PRICE', index=10, number=10, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PROMOTION', index=11, number=11, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AD_CUSTOMIZER', index=12, number=12, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DYNAMIC_EDUCATION', index=13, number=13, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DYNAMIC_FLIGHT', index=14, number=14, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DYNAMIC_CUSTOM', index=15, number=15, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DYNAMIC_HOTEL', index=16, number=16, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DYNAMIC_REAL_ESTATE', index=17, number=17, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DYNAMIC_TRAVEL', index=18, number=18, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DYNAMIC_LOCAL', index=19, number=19, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DYNAMIC_JOB', index=20, number=20, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=148, + serialized_end=524, +) +_sym_db.RegisterEnumDescriptor(_PLACEHOLDERTYPEENUM_PLACEHOLDERTYPE) + + +_PLACEHOLDERTYPEENUM = _descriptor.Descriptor( + name='PlaceholderTypeEnum', + full_name='google.ads.googleads.v1.enums.PlaceholderTypeEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _PLACEHOLDERTYPEENUM_PLACEHOLDERTYPE, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=124, + serialized_end=524, +) + +_PLACEHOLDERTYPEENUM_PLACEHOLDERTYPE.containing_type = _PLACEHOLDERTYPEENUM +DESCRIPTOR.message_types_by_name['PlaceholderTypeEnum'] = _PLACEHOLDERTYPEENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +PlaceholderTypeEnum = _reflection.GeneratedProtocolMessageType('PlaceholderTypeEnum', (_message.Message,), dict( + DESCRIPTOR = _PLACEHOLDERTYPEENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(PlaceholderTypeEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/placeholder_type_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/placeholder_type_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/placeholder_type_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/enums/placement_type_pb2.py b/google/ads/google_ads/v1/proto/enums/placement_type_pb2.py new file mode 100644 index 000000000..e27bb6a9e --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/placement_type_pb2.py @@ -0,0 +1,112 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/enums/placement_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/placement_type.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_PLACEMENTTYPEENUM_PLACEMENTTYPE = _descriptor.EnumDescriptor( + name='PlacementType', + full_name='google.ads.googleads.v1.enums.PlacementTypeEnum.PlacementType', + 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='WEBSITE', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MOBILE_APP_CATEGORY', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MOBILE_APPLICATION', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='YOUTUBE_VIDEO', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='YOUTUBE_CHANNEL', index=6, number=6, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=144, + serialized_end=291, +) +_sym_db.RegisterEnumDescriptor(_PLACEMENTTYPEENUM_PLACEMENTTYPE) + + +_PLACEMENTTYPEENUM = _descriptor.Descriptor( + name='PlacementTypeEnum', + full_name='google.ads.googleads.v1.enums.PlacementTypeEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _PLACEMENTTYPEENUM_PLACEMENTTYPE, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=122, + serialized_end=291, +) + +_PLACEMENTTYPEENUM_PLACEMENTTYPE.containing_type = _PLACEMENTTYPEENUM +DESCRIPTOR.message_types_by_name['PlacementTypeEnum'] = _PLACEMENTTYPEENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +PlacementTypeEnum = _reflection.GeneratedProtocolMessageType('PlacementTypeEnum', (_message.Message,), dict( + DESCRIPTOR = _PLACEMENTTYPEENUM, + __module__ = 'google.ads.googleads_v1.proto.enums.placement_type_pb2' + , + __doc__ = """Container for enum describing possible placement types. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.PlacementTypeEnum) + )) +_sym_db.RegisterMessage(PlacementTypeEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/placement_type_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/placement_type_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/placement_type_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/enums/policy_approval_status_pb2.py b/google/ads/google_ads/v1/proto/enums/policy_approval_status_pb2.py new file mode 100644 index 000000000..4b9e5b1bf --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/policy_approval_status_pb2.py @@ -0,0 +1,108 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/enums/policy_approval_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/policy_approval_status.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_POLICYAPPROVALSTATUSENUM_POLICYAPPROVALSTATUS = _descriptor.EnumDescriptor( + name='PolicyApprovalStatus', + full_name='google.ads.googleads.v1.enums.PolicyApprovalStatusEnum.PolicyApprovalStatus', + 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='DISAPPROVED', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='APPROVED_LIMITED', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='APPROVED', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AREA_OF_INTEREST_ONLY', index=5, number=5, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=159, + serialized_end=291, +) +_sym_db.RegisterEnumDescriptor(_POLICYAPPROVALSTATUSENUM_POLICYAPPROVALSTATUS) + + +_POLICYAPPROVALSTATUSENUM = _descriptor.Descriptor( + name='PolicyApprovalStatusEnum', + full_name='google.ads.googleads.v1.enums.PolicyApprovalStatusEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _POLICYAPPROVALSTATUSENUM_POLICYAPPROVALSTATUS, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=130, + serialized_end=291, +) + +_POLICYAPPROVALSTATUSENUM_POLICYAPPROVALSTATUS.containing_type = _POLICYAPPROVALSTATUSENUM +DESCRIPTOR.message_types_by_name['PolicyApprovalStatusEnum'] = _POLICYAPPROVALSTATUSENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +PolicyApprovalStatusEnum = _reflection.GeneratedProtocolMessageType('PolicyApprovalStatusEnum', (_message.Message,), dict( + DESCRIPTOR = _POLICYAPPROVALSTATUSENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(PolicyApprovalStatusEnum) + + +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/v1/proto/enums/policy_approval_status_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/policy_approval_status_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/enums/policy_review_status_pb2.py b/google/ads/google_ads/v1/proto/enums/policy_review_status_pb2.py new file mode 100644 index 000000000..dafdbae55 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/policy_review_status_pb2.py @@ -0,0 +1,104 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/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_v1/proto/enums/policy_review_status.proto', + package='google.ads.googleads.v1.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\027PolicyReviewStatusProtoP\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_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/policy_review_status_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/policy_review_status_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/policy_review_status_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/enums/policy_topic_entry_type_pb2.py b/google/ads/google_ads/v1/proto/enums/policy_topic_entry_type_pb2.py new file mode 100644 index 000000000..42fe04e68 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/policy_topic_entry_type_pb2.py @@ -0,0 +1,112 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/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')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf 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/policy_topic_entry_type.proto', + package='google.ads.googleads.v1.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\"\xaa\x01\n\x18PolicyTopicEntryTypeEnum\"\x8d\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\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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_POLICYTOPICENTRYTYPEENUM_POLICYTOPICENTRYTYPE = _descriptor.EnumDescriptor( + name='PolicyTopicEntryType', + full_name='google.ads.googleads.v1.enums.PolicyTopicEntryTypeEnum.PolicyTopicEntryType', + 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='PROHIBITED', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LIMITED', index=3, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DESCRIPTIVE', index=4, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BROADENING', index=5, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AREA_OF_INTEREST_ONLY', index=6, number=7, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=160, + serialized_end=301, +) +_sym_db.RegisterEnumDescriptor(_POLICYTOPICENTRYTYPEENUM_POLICYTOPICENTRYTYPE) + + +_POLICYTOPICENTRYTYPEENUM = _descriptor.Descriptor( + name='PolicyTopicEntryTypeEnum', + full_name='google.ads.googleads.v1.enums.PolicyTopicEntryTypeEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _POLICYTOPICENTRYTYPEENUM_POLICYTOPICENTRYTYPE, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=131, + serialized_end=301, +) + +_POLICYTOPICENTRYTYPEENUM_POLICYTOPICENTRYTYPE.containing_type = _POLICYTOPICENTRYTYPEENUM +DESCRIPTOR.message_types_by_name['PolicyTopicEntryTypeEnum'] = _POLICYTOPICENTRYTYPEENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +PolicyTopicEntryTypeEnum = _reflection.GeneratedProtocolMessageType('PolicyTopicEntryTypeEnum', (_message.Message,), dict( + DESCRIPTOR = _POLICYTOPICENTRYTYPEENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(PolicyTopicEntryTypeEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/policy_topic_entry_type_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/policy_topic_entry_type_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/policy_topic_entry_type_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/enums/policy_topic_evidence_destination_mismatch_url_type_pb2.py b/google/ads/google_ads/v1/proto/enums/policy_topic_evidence_destination_mismatch_url_type_pb2.py new file mode 100644 index 000000000..173a984ce --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/policy_topic_evidence_destination_mismatch_url_type_pb2.py @@ -0,0 +1,113 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/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')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf 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/policy_topic_evidence_destination_mismatch_url_type.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_POLICYTOPICEVIDENCEDESTINATIONMISMATCHURLTYPEENUM_POLICYTOPICEVIDENCEDESTINATIONMISMATCHURLTYPE = _descriptor.EnumDescriptor( + name='PolicyTopicEvidenceDestinationMismatchUrlType', + full_name='google.ads.googleads.v1.enums.PolicyTopicEvidenceDestinationMismatchUrlTypeEnum.PolicyTopicEvidenceDestinationMismatchUrlType', + 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='DISPLAY_URL', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FINAL_URL', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FINAL_MOBILE_URL', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TRACKING_URL', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MOBILE_TRACKING_URL', index=6, number=6, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=213, + serialized_end=387, +) +_sym_db.RegisterEnumDescriptor(_POLICYTOPICEVIDENCEDESTINATIONMISMATCHURLTYPEENUM_POLICYTOPICEVIDENCEDESTINATIONMISMATCHURLTYPE) + + +_POLICYTOPICEVIDENCEDESTINATIONMISMATCHURLTYPEENUM = _descriptor.Descriptor( + name='PolicyTopicEvidenceDestinationMismatchUrlTypeEnum', + full_name='google.ads.googleads.v1.enums.PolicyTopicEvidenceDestinationMismatchUrlTypeEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _POLICYTOPICEVIDENCEDESTINATIONMISMATCHURLTYPEENUM_POLICYTOPICEVIDENCEDESTINATIONMISMATCHURLTYPE, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=159, + serialized_end=387, +) + +_POLICYTOPICEVIDENCEDESTINATIONMISMATCHURLTYPEENUM_POLICYTOPICEVIDENCEDESTINATIONMISMATCHURLTYPE.containing_type = _POLICYTOPICEVIDENCEDESTINATIONMISMATCHURLTYPEENUM +DESCRIPTOR.message_types_by_name['PolicyTopicEvidenceDestinationMismatchUrlTypeEnum'] = _POLICYTOPICEVIDENCEDESTINATIONMISMATCHURLTYPEENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +PolicyTopicEvidenceDestinationMismatchUrlTypeEnum = _reflection.GeneratedProtocolMessageType('PolicyTopicEvidenceDestinationMismatchUrlTypeEnum', (_message.Message,), dict( + DESCRIPTOR = _POLICYTOPICEVIDENCEDESTINATIONMISMATCHURLTYPEENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(PolicyTopicEvidenceDestinationMismatchUrlTypeEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/policy_topic_evidence_destination_mismatch_url_type_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/policy_topic_evidence_destination_mismatch_url_type_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/policy_topic_evidence_destination_mismatch_url_type_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/enums/positive_geo_target_type_pb2.py b/google/ads/google_ads/v1/proto/enums/positive_geo_target_type_pb2.py new file mode 100644 index 000000000..3fb7ec705 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/positive_geo_target_type_pb2.py @@ -0,0 +1,104 @@ +# 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/positive_geo_target_type_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/positive_geo_target_type_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/positive_geo_target_type_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/enums/preferred_content_type_pb2.py b/google/ads/google_ads/v1/proto/enums/preferred_content_type_pb2.py new file mode 100644 index 000000000..e3a78d562 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/preferred_content_type_pb2.py @@ -0,0 +1,96 @@ +# 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/preferred_content_type_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/preferred_content_type_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/preferred_content_type_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/enums/price_extension_price_qualifier_pb2.py b/google/ads/google_ads/v1/proto/enums/price_extension_price_qualifier_pb2.py new file mode 100644 index 000000000..2d00539bc --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/price_extension_price_qualifier_pb2.py @@ -0,0 +1,104 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/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')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf 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/price_extension_price_qualifier.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_PRICEEXTENSIONPRICEQUALIFIERENUM_PRICEEXTENSIONPRICEQUALIFIER = _descriptor.EnumDescriptor( + name='PriceExtensionPriceQualifier', + full_name='google.ads.googleads.v1.enums.PriceExtensionPriceQualifierEnum.PriceExtensionPriceQualifier', + 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='FROM', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UP_TO', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AVERAGE', index=4, number=4, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=175, + serialized_end=269, +) +_sym_db.RegisterEnumDescriptor(_PRICEEXTENSIONPRICEQUALIFIERENUM_PRICEEXTENSIONPRICEQUALIFIER) + + +_PRICEEXTENSIONPRICEQUALIFIERENUM = _descriptor.Descriptor( + name='PriceExtensionPriceQualifierEnum', + full_name='google.ads.googleads.v1.enums.PriceExtensionPriceQualifierEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _PRICEEXTENSIONPRICEQUALIFIERENUM_PRICEEXTENSIONPRICEQUALIFIER, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=139, + serialized_end=269, +) + +_PRICEEXTENSIONPRICEQUALIFIERENUM_PRICEEXTENSIONPRICEQUALIFIER.containing_type = _PRICEEXTENSIONPRICEQUALIFIERENUM +DESCRIPTOR.message_types_by_name['PriceExtensionPriceQualifierEnum'] = _PRICEEXTENSIONPRICEQUALIFIERENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +PriceExtensionPriceQualifierEnum = _reflection.GeneratedProtocolMessageType('PriceExtensionPriceQualifierEnum', (_message.Message,), dict( + DESCRIPTOR = _PRICEEXTENSIONPRICEQUALIFIERENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(PriceExtensionPriceQualifierEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/price_extension_price_qualifier_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/price_extension_price_qualifier_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/price_extension_price_qualifier_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/enums/price_extension_price_unit_pb2.py b/google/ads/google_ads/v1/proto/enums/price_extension_price_unit_pb2.py new file mode 100644 index 000000000..5a0bb3596 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/price_extension_price_unit_pb2.py @@ -0,0 +1,116 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/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')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf 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/price_extension_price_unit.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_PRICEEXTENSIONPRICEUNITENUM_PRICEEXTENSIONPRICEUNIT = _descriptor.EnumDescriptor( + name='PriceExtensionPriceUnit', + full_name='google.ads.googleads.v1.enums.PriceExtensionPriceUnitEnum.PriceExtensionPriceUnit', + 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='PER_HOUR', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PER_DAY', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PER_WEEK', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PER_MONTH', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PER_YEAR', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PER_NIGHT', index=7, number=7, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=166, + serialized_end=306, +) +_sym_db.RegisterEnumDescriptor(_PRICEEXTENSIONPRICEUNITENUM_PRICEEXTENSIONPRICEUNIT) + + +_PRICEEXTENSIONPRICEUNITENUM = _descriptor.Descriptor( + name='PriceExtensionPriceUnitEnum', + full_name='google.ads.googleads.v1.enums.PriceExtensionPriceUnitEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _PRICEEXTENSIONPRICEUNITENUM_PRICEEXTENSIONPRICEUNIT, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=134, + serialized_end=306, +) + +_PRICEEXTENSIONPRICEUNITENUM_PRICEEXTENSIONPRICEUNIT.containing_type = _PRICEEXTENSIONPRICEUNITENUM +DESCRIPTOR.message_types_by_name['PriceExtensionPriceUnitEnum'] = _PRICEEXTENSIONPRICEUNITENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +PriceExtensionPriceUnitEnum = _reflection.GeneratedProtocolMessageType('PriceExtensionPriceUnitEnum', (_message.Message,), dict( + DESCRIPTOR = _PRICEEXTENSIONPRICEUNITENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(PriceExtensionPriceUnitEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/price_extension_price_unit_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/price_extension_price_unit_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/price_extension_price_unit_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/enums/price_extension_type_pb2.py b/google/ads/google_ads/v1/proto/enums/price_extension_type_pb2.py new file mode 100644 index 000000000..edd861c14 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/price_extension_type_pb2.py @@ -0,0 +1,128 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/enums/price_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/price_extension_type.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_PRICEEXTENSIONTYPEENUM_PRICEEXTENSIONTYPE = _descriptor.EnumDescriptor( + name='PriceExtensionType', + full_name='google.ads.googleads.v1.enums.PriceExtensionTypeEnum.PriceExtensionType', + 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='BRANDS', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='EVENTS', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LOCATIONS', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NEIGHBORHOODS', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PRODUCT_CATEGORIES', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PRODUCT_TIERS', index=7, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SERVICES', index=8, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SERVICE_CATEGORIES', index=9, number=9, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SERVICE_TIERS', index=10, number=10, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=155, + serialized_end=363, +) +_sym_db.RegisterEnumDescriptor(_PRICEEXTENSIONTYPEENUM_PRICEEXTENSIONTYPE) + + +_PRICEEXTENSIONTYPEENUM = _descriptor.Descriptor( + name='PriceExtensionTypeEnum', + full_name='google.ads.googleads.v1.enums.PriceExtensionTypeEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _PRICEEXTENSIONTYPEENUM_PRICEEXTENSIONTYPE, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=128, + serialized_end=363, +) + +_PRICEEXTENSIONTYPEENUM_PRICEEXTENSIONTYPE.containing_type = _PRICEEXTENSIONTYPEENUM +DESCRIPTOR.message_types_by_name['PriceExtensionTypeEnum'] = _PRICEEXTENSIONTYPEENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +PriceExtensionTypeEnum = _reflection.GeneratedProtocolMessageType('PriceExtensionTypeEnum', (_message.Message,), dict( + DESCRIPTOR = _PRICEEXTENSIONTYPEENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(PriceExtensionTypeEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/price_extension_type_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/price_extension_type_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/price_extension_type_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/enums/price_placeholder_field_pb2.py b/google/ads/google_ads/v1/proto/enums/price_placeholder_field_pb2.py new file mode 100644 index 000000000..49c22308f --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/price_placeholder_field_pb2.py @@ -0,0 +1,304 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/enums/price_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_v1/proto/enums/price_placeholder_field.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_PRICEPLACEHOLDERFIELDENUM_PRICEPLACEHOLDERFIELD = _descriptor.EnumDescriptor( + name='PricePlaceholderField', + full_name='google.ads.googleads.v1.enums.PricePlaceholderFieldEnum.PricePlaceholderField', + 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='TYPE', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PRICE_QUALIFIER', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TRACKING_TEMPLATE', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LANGUAGE', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FINAL_URL_SUFFIX', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ITEM_1_HEADER', index=7, number=100, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ITEM_1_DESCRIPTION', index=8, number=101, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ITEM_1_PRICE', index=9, number=102, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ITEM_1_UNIT', index=10, number=103, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ITEM_1_FINAL_URLS', index=11, number=104, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ITEM_1_FINAL_MOBILE_URLS', index=12, number=105, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ITEM_2_HEADER', index=13, number=200, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ITEM_2_DESCRIPTION', index=14, number=201, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ITEM_2_PRICE', index=15, number=202, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ITEM_2_UNIT', index=16, number=203, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ITEM_2_FINAL_URLS', index=17, number=204, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ITEM_2_FINAL_MOBILE_URLS', index=18, number=205, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ITEM_3_HEADER', index=19, number=300, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ITEM_3_DESCRIPTION', index=20, number=301, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ITEM_3_PRICE', index=21, number=302, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ITEM_3_UNIT', index=22, number=303, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ITEM_3_FINAL_URLS', index=23, number=304, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ITEM_3_FINAL_MOBILE_URLS', index=24, number=305, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ITEM_4_HEADER', index=25, number=400, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ITEM_4_DESCRIPTION', index=26, number=401, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ITEM_4_PRICE', index=27, number=402, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ITEM_4_UNIT', index=28, number=403, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ITEM_4_FINAL_URLS', index=29, number=404, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ITEM_4_FINAL_MOBILE_URLS', index=30, number=405, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ITEM_5_HEADER', index=31, number=500, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ITEM_5_DESCRIPTION', index=32, number=501, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ITEM_5_PRICE', index=33, number=502, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ITEM_5_UNIT', index=34, number=503, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ITEM_5_FINAL_URLS', index=35, number=504, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ITEM_5_FINAL_MOBILE_URLS', index=36, number=505, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ITEM_6_HEADER', index=37, number=600, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ITEM_6_DESCRIPTION', index=38, number=601, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ITEM_6_PRICE', index=39, number=602, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ITEM_6_UNIT', index=40, number=603, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ITEM_6_FINAL_URLS', index=41, number=604, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ITEM_6_FINAL_MOBILE_URLS', index=42, number=605, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ITEM_7_HEADER', index=43, number=700, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ITEM_7_DESCRIPTION', index=44, number=701, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ITEM_7_PRICE', index=45, number=702, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ITEM_7_UNIT', index=46, number=703, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ITEM_7_FINAL_URLS', index=47, number=704, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ITEM_7_FINAL_MOBILE_URLS', index=48, number=705, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ITEM_8_HEADER', index=49, number=800, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ITEM_8_DESCRIPTION', index=50, number=801, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ITEM_8_PRICE', index=51, number=802, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ITEM_8_UNIT', index=52, number=803, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ITEM_8_FINAL_URLS', index=53, number=804, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ITEM_8_FINAL_MOBILE_URLS', index=54, number=805, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=161, + serialized_end=1394, +) +_sym_db.RegisterEnumDescriptor(_PRICEPLACEHOLDERFIELDENUM_PRICEPLACEHOLDERFIELD) + + +_PRICEPLACEHOLDERFIELDENUM = _descriptor.Descriptor( + name='PricePlaceholderFieldEnum', + full_name='google.ads.googleads.v1.enums.PricePlaceholderFieldEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _PRICEPLACEHOLDERFIELDENUM_PRICEPLACEHOLDERFIELD, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=131, + serialized_end=1394, +) + +_PRICEPLACEHOLDERFIELDENUM_PRICEPLACEHOLDERFIELD.containing_type = _PRICEPLACEHOLDERFIELDENUM +DESCRIPTOR.message_types_by_name['PricePlaceholderFieldEnum'] = _PRICEPLACEHOLDERFIELDENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +PricePlaceholderFieldEnum = _reflection.GeneratedProtocolMessageType('PricePlaceholderFieldEnum', (_message.Message,), dict( + DESCRIPTOR = _PRICEPLACEHOLDERFIELDENUM, + __module__ = 'google.ads.googleads_v1.proto.enums.price_placeholder_field_pb2' + , + __doc__ = """Values for Price placeholder fields. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.PricePlaceholderFieldEnum) + )) +_sym_db.RegisterMessage(PricePlaceholderFieldEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/price_placeholder_field_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/price_placeholder_field_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/price_placeholder_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/v1/proto/enums/product_bidding_category_level_pb2.py b/google/ads/google_ads/v1/proto/enums/product_bidding_category_level_pb2.py new file mode 100644 index 000000000..14e6f4d8a --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/product_bidding_category_level_pb2.py @@ -0,0 +1,112 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/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')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf 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_level.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_PRODUCTBIDDINGCATEGORYLEVELENUM_PRODUCTBIDDINGCATEGORYLEVEL = _descriptor.EnumDescriptor( + name='ProductBiddingCategoryLevel', + full_name='google.ads.googleads.v1.enums.ProductBiddingCategoryLevelEnum.ProductBiddingCategoryLevel', + 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='LEVEL1', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LEVEL2', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LEVEL3', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LEVEL4', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LEVEL5', index=6, number=6, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=173, + serialized_end=292, +) +_sym_db.RegisterEnumDescriptor(_PRODUCTBIDDINGCATEGORYLEVELENUM_PRODUCTBIDDINGCATEGORYLEVEL) + + +_PRODUCTBIDDINGCATEGORYLEVELENUM = _descriptor.Descriptor( + name='ProductBiddingCategoryLevelEnum', + full_name='google.ads.googleads.v1.enums.ProductBiddingCategoryLevelEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _PRODUCTBIDDINGCATEGORYLEVELENUM_PRODUCTBIDDINGCATEGORYLEVEL, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=138, + serialized_end=292, +) + +_PRODUCTBIDDINGCATEGORYLEVELENUM_PRODUCTBIDDINGCATEGORYLEVEL.containing_type = _PRODUCTBIDDINGCATEGORYLEVELENUM +DESCRIPTOR.message_types_by_name['ProductBiddingCategoryLevelEnum'] = _PRODUCTBIDDINGCATEGORYLEVELENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ProductBiddingCategoryLevelEnum = _reflection.GeneratedProtocolMessageType('ProductBiddingCategoryLevelEnum', (_message.Message,), dict( + DESCRIPTOR = _PRODUCTBIDDINGCATEGORYLEVELENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(ProductBiddingCategoryLevelEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/product_bidding_category_level_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/product_bidding_category_level_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/product_bidding_category_level_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/enums/product_bidding_category_status_pb2.py b/google/ads/google_ads/v1/proto/enums/product_bidding_category_status_pb2.py new file mode 100644 index 000000000..077aaca85 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/product_bidding_category_status_pb2.py @@ -0,0 +1,100 @@ +# 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_bidding_category_status_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/product_bidding_category_status_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/product_bidding_category_status_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/enums/product_channel_exclusivity_pb2.py b/google/ads/google_ads/v1/proto/enums/product_channel_exclusivity_pb2.py new file mode 100644 index 000000000..306b932d1 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/product_channel_exclusivity_pb2.py @@ -0,0 +1,100 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/enums/product_channel_exclusivity.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf 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_exclusivity.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_PRODUCTCHANNELEXCLUSIVITYENUM_PRODUCTCHANNELEXCLUSIVITY = _descriptor.EnumDescriptor( + name='ProductChannelExclusivity', + full_name='google.ads.googleads.v1.enums.ProductChannelExclusivityEnum.ProductChannelExclusivity', + 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='SINGLE_CHANNEL', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MULTI_CHANNEL', index=3, number=3, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=168, + serialized_end=264, +) +_sym_db.RegisterEnumDescriptor(_PRODUCTCHANNELEXCLUSIVITYENUM_PRODUCTCHANNELEXCLUSIVITY) + + +_PRODUCTCHANNELEXCLUSIVITYENUM = _descriptor.Descriptor( + name='ProductChannelExclusivityEnum', + full_name='google.ads.googleads.v1.enums.ProductChannelExclusivityEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _PRODUCTCHANNELEXCLUSIVITYENUM_PRODUCTCHANNELEXCLUSIVITY, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=135, + serialized_end=264, +) + +_PRODUCTCHANNELEXCLUSIVITYENUM_PRODUCTCHANNELEXCLUSIVITY.containing_type = _PRODUCTCHANNELEXCLUSIVITYENUM +DESCRIPTOR.message_types_by_name['ProductChannelExclusivityEnum'] = _PRODUCTCHANNELEXCLUSIVITYENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ProductChannelExclusivityEnum = _reflection.GeneratedProtocolMessageType('ProductChannelExclusivityEnum', (_message.Message,), dict( + DESCRIPTOR = _PRODUCTCHANNELEXCLUSIVITYENUM, + __module__ = 'google.ads.googleads_v1.proto.enums.product_channel_exclusivity_pb2' + , + __doc__ = """Availability of a product offer. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.ProductChannelExclusivityEnum) + )) +_sym_db.RegisterMessage(ProductChannelExclusivityEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/product_channel_exclusivity_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/product_channel_exclusivity_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/product_channel_exclusivity_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/enums/product_channel_pb2.py b/google/ads/google_ads/v1/proto/enums/product_channel_pb2.py new file mode 100644 index 000000000..aacb9f2f9 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/product_channel_pb2.py @@ -0,0 +1,100 @@ +# 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_channel_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/product_channel_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/product_channel_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/enums/product_condition_pb2.py b/google/ads/google_ads/v1/proto/enums/product_condition_pb2.py new file mode 100644 index 000000000..968b26c3b --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/product_condition_pb2.py @@ -0,0 +1,104 @@ +# 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/product_condition_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/product_condition_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/product_condition_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/enums/product_type_level_pb2.py b/google/ads/google_ads/v1/proto/enums/product_type_level_pb2.py new file mode 100644 index 000000000..4dff97f88 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/product_type_level_pb2.py @@ -0,0 +1,112 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/enums/product_type_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/product_type_level.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_QUALITYSCOREBUCKETENUM_QUALITYSCOREBUCKET = _descriptor.EnumDescriptor( + name='QualityScoreBucket', + full_name='google.ads.googleads.v1.enums.QualityScoreBucketEnum.QualityScoreBucket', + 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='BELOW_AVERAGE', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AVERAGE', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ABOVE_AVERAGE', index=4, number=4, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=153, + serialized_end=254, +) +_sym_db.RegisterEnumDescriptor(_QUALITYSCOREBUCKETENUM_QUALITYSCOREBUCKET) + + +_QUALITYSCOREBUCKETENUM = _descriptor.Descriptor( + name='QualityScoreBucketEnum', + full_name='google.ads.googleads.v1.enums.QualityScoreBucketEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _QUALITYSCOREBUCKETENUM_QUALITYSCOREBUCKET, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=127, + serialized_end=254, +) + +_QUALITYSCOREBUCKETENUM_QUALITYSCOREBUCKET.containing_type = _QUALITYSCOREBUCKETENUM +DESCRIPTOR.message_types_by_name['QualityScoreBucketEnum'] = _QUALITYSCOREBUCKETENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +QualityScoreBucketEnum = _reflection.GeneratedProtocolMessageType('QualityScoreBucketEnum', (_message.Message,), dict( + DESCRIPTOR = _QUALITYSCOREBUCKETENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(QualityScoreBucketEnum) + + +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/v1/proto/enums/quality_score_bucket_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/quality_score_bucket_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/enums/real_estate_placeholder_field_pb2.py b/google/ads/google_ads/v1/proto/enums/real_estate_placeholder_field_pb2.py new file mode 100644 index 000000000..7e5edb2ce --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/real_estate_placeholder_field_pb2.py @@ -0,0 +1,166 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/enums/real_estate_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_v1/proto/enums/real_estate_placeholder_field.proto', + package='google.ads.googleads.v1.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\037RealEstatePlaceholderFieldProtoP\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/real_estate_placeholder_field.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\xa9\x03\n\x1eRealEstatePlaceholderFieldEnum\"\x86\x03\n\x1aRealEstatePlaceholderField\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0e\n\nLISTING_ID\x10\x02\x12\x10\n\x0cLISTING_NAME\x10\x03\x12\r\n\tCITY_NAME\x10\x04\x12\x0f\n\x0b\x44\x45SCRIPTION\x10\x05\x12\x0b\n\x07\x41\x44\x44RESS\x10\x06\x12\t\n\x05PRICE\x10\x07\x12\x13\n\x0f\x46ORMATTED_PRICE\x10\x08\x12\r\n\tIMAGE_URL\x10\t\x12\x11\n\rPROPERTY_TYPE\x10\n\x12\x10\n\x0cLISTING_TYPE\x10\x0b\x12\x17\n\x13\x43ONTEXTUAL_KEYWORDS\x10\x0c\x12\x0e\n\nFINAL_URLS\x10\r\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\x17\n\x13SIMILAR_LISTING_IDS\x10\x11\x12\x10\n\x0cIOS_APP_LINK\x10\x12\x12\x14\n\x10IOS_APP_STORE_ID\x10\x13\x42\xf4\x01\n!com.google.ads.googleads.v1.enumsB\x1fRealEstatePlaceholderFieldProtoP\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,]) + + + +_REALESTATEPLACEHOLDERFIELDENUM_REALESTATEPLACEHOLDERFIELD = _descriptor.EnumDescriptor( + name='RealEstatePlaceholderField', + full_name='google.ads.googleads.v1.enums.RealEstatePlaceholderFieldEnum.RealEstatePlaceholderField', + 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='LISTING_ID', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LISTING_NAME', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CITY_NAME', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DESCRIPTION', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ADDRESS', 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='FORMATTED_PRICE', index=8, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='IMAGE_URL', index=9, number=9, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PROPERTY_TYPE', index=10, number=10, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LISTING_TYPE', index=11, number=11, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CONTEXTUAL_KEYWORDS', index=12, number=12, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FINAL_URLS', index=13, number=13, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FINAL_MOBILE_URLS', index=14, number=14, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TRACKING_URL', index=15, number=15, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ANDROID_APP_LINK', index=16, number=16, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SIMILAR_LISTING_IDS', index=17, number=17, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='IOS_APP_LINK', index=18, number=18, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='IOS_APP_STORE_ID', index=19, number=19, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=172, + serialized_end=562, +) +_sym_db.RegisterEnumDescriptor(_REALESTATEPLACEHOLDERFIELDENUM_REALESTATEPLACEHOLDERFIELD) + + +_REALESTATEPLACEHOLDERFIELDENUM = _descriptor.Descriptor( + name='RealEstatePlaceholderFieldEnum', + full_name='google.ads.googleads.v1.enums.RealEstatePlaceholderFieldEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _REALESTATEPLACEHOLDERFIELDENUM_REALESTATEPLACEHOLDERFIELD, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=137, + serialized_end=562, +) + +_REALESTATEPLACEHOLDERFIELDENUM_REALESTATEPLACEHOLDERFIELD.containing_type = _REALESTATEPLACEHOLDERFIELDENUM +DESCRIPTOR.message_types_by_name['RealEstatePlaceholderFieldEnum'] = _REALESTATEPLACEHOLDERFIELDENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +RealEstatePlaceholderFieldEnum = _reflection.GeneratedProtocolMessageType('RealEstatePlaceholderFieldEnum', (_message.Message,), dict( + DESCRIPTOR = _REALESTATEPLACEHOLDERFIELDENUM, + __module__ = 'google.ads.googleads_v1.proto.enums.real_estate_placeholder_field_pb2' + , + __doc__ = """Values for Real Estate 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.RealEstatePlaceholderFieldEnum) + )) +_sym_db.RegisterMessage(RealEstatePlaceholderFieldEnum) + + +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/v1/proto/enums/real_estate_placeholder_field_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/real_estate_placeholder_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/v1/proto/enums/recommendation_type_pb2.py b/google/ads/google_ads/v1/proto/enums/recommendation_type_pb2.py new file mode 100644 index 000000000..8c3ab57ef --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/recommendation_type_pb2.py @@ -0,0 +1,128 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/enums/recommendation_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/recommendation_type.proto', + package='google.ads.googleads.v1.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\027RecommendationTypeProtoP\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/recommendation_type.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\x9f\x02\n\x16RecommendationTypeEnum\"\x84\x02\n\x12RecommendationType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x13\n\x0f\x43\x41MPAIGN_BUDGET\x10\x02\x12\x0b\n\x07KEYWORD\x10\x03\x12\x0b\n\x07TEXT_AD\x10\x04\x12\x15\n\x11TARGET_CPA_OPT_IN\x10\x05\x12\x1f\n\x1bMAXIMIZE_CONVERSIONS_OPT_IN\x10\x06\x12\x17\n\x13\x45NHANCED_CPC_OPT_IN\x10\x07\x12\x1a\n\x16SEARCH_PARTNERS_OPT_IN\x10\x08\x12\x1a\n\x16MAXIMIZE_CLICKS_OPT_IN\x10\t\x12\x18\n\x14OPTIMIZE_AD_ROTATION\x10\nB\xec\x01\n!com.google.ads.googleads.v1.enumsB\x17RecommendationTypeProtoP\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,]) + + + +_RECOMMENDATIONTYPEENUM_RECOMMENDATIONTYPE = _descriptor.EnumDescriptor( + name='RecommendationType', + full_name='google.ads.googleads.v1.enums.RecommendationTypeEnum.RecommendationType', + 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_BUDGET', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='KEYWORD', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TEXT_AD', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TARGET_CPA_OPT_IN', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MAXIMIZE_CONVERSIONS_OPT_IN', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ENHANCED_CPC_OPT_IN', index=7, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SEARCH_PARTNERS_OPT_IN', index=8, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MAXIMIZE_CLICKS_OPT_IN', index=9, number=9, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='OPTIMIZE_AD_ROTATION', index=10, number=10, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=154, + serialized_end=414, +) +_sym_db.RegisterEnumDescriptor(_RECOMMENDATIONTYPEENUM_RECOMMENDATIONTYPE) + + +_RECOMMENDATIONTYPEENUM = _descriptor.Descriptor( + name='RecommendationTypeEnum', + full_name='google.ads.googleads.v1.enums.RecommendationTypeEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _RECOMMENDATIONTYPEENUM_RECOMMENDATIONTYPE, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=127, + serialized_end=414, +) + +_RECOMMENDATIONTYPEENUM_RECOMMENDATIONTYPE.containing_type = _RECOMMENDATIONTYPEENUM +DESCRIPTOR.message_types_by_name['RecommendationTypeEnum'] = _RECOMMENDATIONTYPEENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +RecommendationTypeEnum = _reflection.GeneratedProtocolMessageType('RecommendationTypeEnum', (_message.Message,), dict( + DESCRIPTOR = _RECOMMENDATIONTYPEENUM, + __module__ = 'google.ads.googleads_v1.proto.enums.recommendation_type_pb2' + , + __doc__ = """Container for enum describing types of recommendations. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.RecommendationTypeEnum) + )) +_sym_db.RegisterMessage(RecommendationTypeEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/recommendation_type_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/recommendation_type_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/recommendation_type_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/enums/search_term_match_type_pb2.py b/google/ads/google_ads/v1/proto/enums/search_term_match_type_pb2.py new file mode 100644 index 000000000..81ee0a1c2 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/search_term_match_type_pb2.py @@ -0,0 +1,113 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/enums/search_term_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/search_term_match_type.proto', + package='google.ads.googleads.v1.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\030SearchTermMatchTypeProtoP\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/search_term_match_type.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\x91\x01\n\x17SearchTermMatchTypeEnum\"v\n\x13SearchTermMatchType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\t\n\x05\x42ROAD\x10\x02\x12\t\n\x05\x45XACT\x10\x03\x12\n\n\x06PHRASE\x10\x04\x12\x0e\n\nNEAR_EXACT\x10\x05\x12\x0f\n\x0bNEAR_PHRASE\x10\x06\x42\xed\x01\n!com.google.ads.googleads.v1.enumsB\x18SearchTermMatchTypeProtoP\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,]) + + + +_SEARCHTERMMATCHTYPEENUM_SEARCHTERMMATCHTYPE = _descriptor.EnumDescriptor( + name='SearchTermMatchType', + full_name='google.ads.googleads.v1.enums.SearchTermMatchTypeEnum.SearchTermMatchType', + 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='BROAD', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='EXACT', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PHRASE', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NEAR_EXACT', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NEAR_PHRASE', index=6, number=6, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=157, + serialized_end=275, +) +_sym_db.RegisterEnumDescriptor(_SEARCHTERMMATCHTYPEENUM_SEARCHTERMMATCHTYPE) + + +_SEARCHTERMMATCHTYPEENUM = _descriptor.Descriptor( + name='SearchTermMatchTypeEnum', + full_name='google.ads.googleads.v1.enums.SearchTermMatchTypeEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _SEARCHTERMMATCHTYPEENUM_SEARCHTERMMATCHTYPE, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=130, + serialized_end=275, +) + +_SEARCHTERMMATCHTYPEENUM_SEARCHTERMMATCHTYPE.containing_type = _SEARCHTERMMATCHTYPEENUM +DESCRIPTOR.message_types_by_name['SearchTermMatchTypeEnum'] = _SEARCHTERMMATCHTYPEENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +SearchTermMatchTypeEnum = _reflection.GeneratedProtocolMessageType('SearchTermMatchTypeEnum', (_message.Message,), dict( + DESCRIPTOR = _SEARCHTERMMATCHTYPEENUM, + __module__ = 'google.ads.googleads_v1.proto.enums.search_term_match_type_pb2' + , + __doc__ = """Container for enum describing match types for a keyword triggering an + ad. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.SearchTermMatchTypeEnum) + )) +_sym_db.RegisterMessage(SearchTermMatchTypeEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/search_term_match_type_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/search_term_match_type_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/search_term_match_type_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/enums/search_term_targeting_status_pb2.py b/google/ads/google_ads/v1/proto/enums/search_term_targeting_status_pb2.py new file mode 100644 index 000000000..1b666e74a --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/search_term_targeting_status_pb2.py @@ -0,0 +1,109 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/enums/search_term_targeting_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/search_term_targeting_status.proto', + package='google.ads.googleads.v1.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\036SearchTermTargetingStatusProtoP\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/search_term_targeting_status.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\x91\x01\n\x1dSearchTermTargetingStatusEnum\"p\n\x19SearchTermTargetingStatus\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\t\n\x05\x41\x44\x44\x45\x44\x10\x02\x12\x0c\n\x08\x45XCLUDED\x10\x03\x12\x12\n\x0e\x41\x44\x44\x45\x44_EXCLUDED\x10\x04\x12\x08\n\x04NONE\x10\x05\x42\xf3\x01\n!com.google.ads.googleads.v1.enumsB\x1eSearchTermTargetingStatusProtoP\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,]) + + + +_SEARCHTERMTARGETINGSTATUSENUM_SEARCHTERMTARGETINGSTATUS = _descriptor.EnumDescriptor( + name='SearchTermTargetingStatus', + full_name='google.ads.googleads.v1.enums.SearchTermTargetingStatusEnum.SearchTermTargetingStatus', + 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='ADDED', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='EXCLUDED', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ADDED_EXCLUDED', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NONE', index=5, number=5, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=169, + serialized_end=281, +) +_sym_db.RegisterEnumDescriptor(_SEARCHTERMTARGETINGSTATUSENUM_SEARCHTERMTARGETINGSTATUS) + + +_SEARCHTERMTARGETINGSTATUSENUM = _descriptor.Descriptor( + name='SearchTermTargetingStatusEnum', + full_name='google.ads.googleads.v1.enums.SearchTermTargetingStatusEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _SEARCHTERMTARGETINGSTATUSENUM_SEARCHTERMTARGETINGSTATUS, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=136, + serialized_end=281, +) + +_SEARCHTERMTARGETINGSTATUSENUM_SEARCHTERMTARGETINGSTATUS.containing_type = _SEARCHTERMTARGETINGSTATUSENUM +DESCRIPTOR.message_types_by_name['SearchTermTargetingStatusEnum'] = _SEARCHTERMTARGETINGSTATUSENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +SearchTermTargetingStatusEnum = _reflection.GeneratedProtocolMessageType('SearchTermTargetingStatusEnum', (_message.Message,), dict( + DESCRIPTOR = _SEARCHTERMTARGETINGSTATUSENUM, + __module__ = 'google.ads.googleads_v1.proto.enums.search_term_targeting_status_pb2' + , + __doc__ = """Container for enum indicating whether a search term is one of your + targeted or excluded keywords. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.SearchTermTargetingStatusEnum) + )) +_sym_db.RegisterMessage(SearchTermTargetingStatusEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/search_term_targeting_status_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/search_term_targeting_status_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/search_term_targeting_status_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/enums/served_asset_field_type_pb2.py b/google/ads/google_ads/v1/proto/enums/served_asset_field_type_pb2.py new file mode 100644 index 000000000..ee64fc4c1 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/served_asset_field_type_pb2.py @@ -0,0 +1,112 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/enums/served_asset_field_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/served_asset_field_type.proto', + package='google.ads.googleads.v1.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\031ServedAssetFieldTypeProtoP\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/served_asset_field_type.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\xa7\x01\n\x18ServedAssetFieldTypeEnum\"\x8a\x01\n\x14ServedAssetFieldType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0e\n\nHEADLINE_1\x10\x02\x12\x0e\n\nHEADLINE_2\x10\x03\x12\x0e\n\nHEADLINE_3\x10\x04\x12\x11\n\rDESCRIPTION_1\x10\x05\x12\x11\n\rDESCRIPTION_2\x10\x06\x42\xee\x01\n!com.google.ads.googleads.v1.enumsB\x19ServedAssetFieldTypeProtoP\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,]) + + + +_SERVEDASSETFIELDTYPEENUM_SERVEDASSETFIELDTYPE = _descriptor.EnumDescriptor( + name='ServedAssetFieldType', + full_name='google.ads.googleads.v1.enums.ServedAssetFieldTypeEnum.ServedAssetFieldType', + 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='HEADLINE_1', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='HEADLINE_2', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='HEADLINE_3', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DESCRIPTION_1', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DESCRIPTION_2', index=6, number=6, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=160, + serialized_end=298, +) +_sym_db.RegisterEnumDescriptor(_SERVEDASSETFIELDTYPEENUM_SERVEDASSETFIELDTYPE) + + +_SERVEDASSETFIELDTYPEENUM = _descriptor.Descriptor( + name='ServedAssetFieldTypeEnum', + full_name='google.ads.googleads.v1.enums.ServedAssetFieldTypeEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _SERVEDASSETFIELDTYPEENUM_SERVEDASSETFIELDTYPE, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=131, + serialized_end=298, +) + +_SERVEDASSETFIELDTYPEENUM_SERVEDASSETFIELDTYPE.containing_type = _SERVEDASSETFIELDTYPEENUM +DESCRIPTOR.message_types_by_name['ServedAssetFieldTypeEnum'] = _SERVEDASSETFIELDTYPEENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ServedAssetFieldTypeEnum = _reflection.GeneratedProtocolMessageType('ServedAssetFieldTypeEnum', (_message.Message,), dict( + DESCRIPTOR = _SERVEDASSETFIELDTYPEENUM, + __module__ = 'google.ads.googleads_v1.proto.enums.served_asset_field_type_pb2' + , + __doc__ = """Container for enum describing possible asset field types. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.ServedAssetFieldTypeEnum) + )) +_sym_db.RegisterMessage(ServedAssetFieldTypeEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/served_asset_field_type_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/served_asset_field_type_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/served_asset_field_type_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/enums/shared_set_status_pb2.py b/google/ads/google_ads/v1/proto/enums/shared_set_status_pb2.py new file mode 100644 index 000000000..d19430f78 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/shared_set_status_pb2.py @@ -0,0 +1,100 @@ +# 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_status_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/shared_set_status_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/shared_set_status_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/enums/shared_set_type_pb2.py b/google/ads/google_ads/v1/proto/enums/shared_set_type_pb2.py new file mode 100644 index 000000000..311d0ad6d --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/shared_set_type_pb2.py @@ -0,0 +1,100 @@ +# 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/shared_set_type_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/shared_set_type_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/shared_set_type_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/enums/simulation_modification_method_pb2.py b/google/ads/google_ads/v1/proto/enums/simulation_modification_method_pb2.py new file mode 100644 index 000000000..c3a589b9c --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/simulation_modification_method_pb2.py @@ -0,0 +1,97 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/enums/simulation_modification_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_v1/proto/enums/simulation_modification_method.proto', + package='google.ads.googleads.v1.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB!SimulationModificationMethodProtoP\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/simulation_modification_method.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"m\n SimulationModificationMethodEnum\"I\n\x1cSimulationModificationMethod\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07UNIFORM\x10\x02\x42\xf6\x01\n!com.google.ads.googleads.v1.enumsB!SimulationModificationMethodProtoP\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,]) + + + +_SIMULATIONMODIFICATIONMETHODENUM_SIMULATIONMODIFICATIONMETHOD = _descriptor.EnumDescriptor( + name='SimulationModificationMethod', + full_name='google.ads.googleads.v1.enums.SimulationModificationMethodEnum.SimulationModificationMethod', + 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='UNIFORM', index=2, number=2, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=173, + serialized_end=246, +) +_sym_db.RegisterEnumDescriptor(_SIMULATIONMODIFICATIONMETHODENUM_SIMULATIONMODIFICATIONMETHOD) + + +_SIMULATIONMODIFICATIONMETHODENUM = _descriptor.Descriptor( + name='SimulationModificationMethodEnum', + full_name='google.ads.googleads.v1.enums.SimulationModificationMethodEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _SIMULATIONMODIFICATIONMETHODENUM_SIMULATIONMODIFICATIONMETHOD, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=137, + serialized_end=246, +) + +_SIMULATIONMODIFICATIONMETHODENUM_SIMULATIONMODIFICATIONMETHOD.containing_type = _SIMULATIONMODIFICATIONMETHODENUM +DESCRIPTOR.message_types_by_name['SimulationModificationMethodEnum'] = _SIMULATIONMODIFICATIONMETHODENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +SimulationModificationMethodEnum = _reflection.GeneratedProtocolMessageType('SimulationModificationMethodEnum', (_message.Message,), dict( + DESCRIPTOR = _SIMULATIONMODIFICATIONMETHODENUM, + __module__ = 'google.ads.googleads_v1.proto.enums.simulation_modification_method_pb2' + , + __doc__ = """Container for enum describing the method by which a simulation modifies + a field. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.SimulationModificationMethodEnum) + )) +_sym_db.RegisterMessage(SimulationModificationMethodEnum) + + +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/v1/proto/enums/simulation_modification_method_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/simulation_modification_method_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/enums/simulation_type_pb2.py b/google/ads/google_ads/v1/proto/enums/simulation_type_pb2.py new file mode 100644 index 000000000..32576cb98 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/simulation_type_pb2.py @@ -0,0 +1,96 @@ +# 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\"V\n\x12SimulationTypeEnum\"@\n\x0eSimulationType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\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='BID_MODIFIER', index=2, number=5, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=144, + serialized_end=208, +) +_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=122, + serialized_end=208, +) + +_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/simulation_type_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/simulation_type_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/simulation_type_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/enums/sitelink_placeholder_field_pb2.py b/google/ads/google_ads/v1/proto/enums/sitelink_placeholder_field_pb2.py new file mode 100644 index 000000000..e57254277 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/sitelink_placeholder_field_pb2.py @@ -0,0 +1,120 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/enums/sitelink_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_v1/proto/enums/sitelink_placeholder_field.proto', + package='google.ads.googleads.v1.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\035SitelinkPlaceholderFieldProtoP\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/sitelink_placeholder_field.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\xca\x01\n\x1cSitelinkPlaceholderFieldEnum\"\xa9\x01\n\x18SitelinkPlaceholderField\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x08\n\x04TEXT\x10\x02\x12\n\n\x06LINE_1\x10\x03\x12\n\n\x06LINE_2\x10\x04\x12\x0e\n\nFINAL_URLS\x10\x05\x12\x15\n\x11\x46INAL_MOBILE_URLS\x10\x06\x12\x10\n\x0cTRACKING_URL\x10\x07\x12\x14\n\x10\x46INAL_URL_SUFFIX\x10\x08\x42\xf2\x01\n!com.google.ads.googleads.v1.enumsB\x1dSitelinkPlaceholderFieldProtoP\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,]) + + + +_SITELINKPLACEHOLDERFIELDENUM_SITELINKPLACEHOLDERFIELD = _descriptor.EnumDescriptor( + name='SitelinkPlaceholderField', + full_name='google.ads.googleads.v1.enums.SitelinkPlaceholderFieldEnum.SitelinkPlaceholderField', + 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='TEXT', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LINE_1', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LINE_2', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FINAL_URLS', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FINAL_MOBILE_URLS', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TRACKING_URL', index=7, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FINAL_URL_SUFFIX', index=8, number=8, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=167, + serialized_end=336, +) +_sym_db.RegisterEnumDescriptor(_SITELINKPLACEHOLDERFIELDENUM_SITELINKPLACEHOLDERFIELD) + + +_SITELINKPLACEHOLDERFIELDENUM = _descriptor.Descriptor( + name='SitelinkPlaceholderFieldEnum', + full_name='google.ads.googleads.v1.enums.SitelinkPlaceholderFieldEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _SITELINKPLACEHOLDERFIELDENUM_SITELINKPLACEHOLDERFIELD, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=134, + serialized_end=336, +) + +_SITELINKPLACEHOLDERFIELDENUM_SITELINKPLACEHOLDERFIELD.containing_type = _SITELINKPLACEHOLDERFIELDENUM +DESCRIPTOR.message_types_by_name['SitelinkPlaceholderFieldEnum'] = _SITELINKPLACEHOLDERFIELDENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +SitelinkPlaceholderFieldEnum = _reflection.GeneratedProtocolMessageType('SitelinkPlaceholderFieldEnum', (_message.Message,), dict( + DESCRIPTOR = _SITELINKPLACEHOLDERFIELDENUM, + __module__ = 'google.ads.googleads_v1.proto.enums.sitelink_placeholder_field_pb2' + , + __doc__ = """Values for Sitelink placeholder fields. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.SitelinkPlaceholderFieldEnum) + )) +_sym_db.RegisterMessage(SitelinkPlaceholderFieldEnum) + + +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/v1/proto/enums/sitelink_placeholder_field_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/sitelink_placeholder_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/v1/proto/enums/slot_pb2.py b/google/ads/google_ads/v1/proto/enums/slot_pb2.py new file mode 100644 index 000000000..c55592ee1 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/slot_pb2.py @@ -0,0 +1,120 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/enums/slot.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf 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/slot.proto', + package='google.ads.googleads.v1.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\tSlotProtoP\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/slot.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\xae\x01\n\x08SlotEnum\"\xa1\x01\n\x04Slot\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0f\n\x0bSEARCH_SIDE\x10\x02\x12\x0e\n\nSEARCH_TOP\x10\x03\x12\x10\n\x0cSEARCH_OTHER\x10\x04\x12\x0b\n\x07\x43ONTENT\x10\x05\x12\x16\n\x12SEARCH_PARTNER_TOP\x10\x06\x12\x18\n\x14SEARCH_PARTNER_OTHER\x10\x07\x12\t\n\x05MIXED\x10\x08\x42\xde\x01\n!com.google.ads.googleads.v1.enumsB\tSlotProtoP\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,]) + + + +_SLOTENUM_SLOT = _descriptor.EnumDescriptor( + name='Slot', + full_name='google.ads.googleads.v1.enums.SlotEnum.Slot', + 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='SEARCH_SIDE', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SEARCH_TOP', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SEARCH_OTHER', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CONTENT', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SEARCH_PARTNER_TOP', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SEARCH_PARTNER_OTHER', index=7, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MIXED', index=8, number=8, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=125, + serialized_end=286, +) +_sym_db.RegisterEnumDescriptor(_SLOTENUM_SLOT) + + +_SLOTENUM = _descriptor.Descriptor( + name='SlotEnum', + full_name='google.ads.googleads.v1.enums.SlotEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _SLOTENUM_SLOT, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=112, + serialized_end=286, +) + +_SLOTENUM_SLOT.containing_type = _SLOTENUM +DESCRIPTOR.message_types_by_name['SlotEnum'] = _SLOTENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +SlotEnum = _reflection.GeneratedProtocolMessageType('SlotEnum', (_message.Message,), dict( + DESCRIPTOR = _SLOTENUM, + __module__ = 'google.ads.googleads_v1.proto.enums.slot_pb2' + , + __doc__ = """Container for enumeration of possible positions of the Ad. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.SlotEnum) + )) +_sym_db.RegisterMessage(SlotEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/slot_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/slot_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/slot_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/enums/spending_limit_type_pb2.py b/google/ads/google_ads/v1/proto/enums/spending_limit_type_pb2.py new file mode 100644 index 000000000..66734826d --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/spending_limit_type_pb2.py @@ -0,0 +1,96 @@ +# 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/spending_limit_type_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/spending_limit_type_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/spending_limit_type_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/enums/structured_snippet_placeholder_field_pb2.py b/google/ads/google_ads/v1/proto/enums/structured_snippet_placeholder_field_pb2.py new file mode 100644 index 000000000..eeb64f0c3 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/structured_snippet_placeholder_field_pb2.py @@ -0,0 +1,100 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/enums/structured_snippet_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_v1/proto/enums/structured_snippet_placeholder_field.proto', + package='google.ads.googleads.v1.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB&StructuredSnippetPlaceholderFieldProtoP\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/structured_snippet_placeholder_field.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\x84\x01\n%StructuredSnippetPlaceholderFieldEnum\"[\n!StructuredSnippetPlaceholderField\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\n\n\x06HEADER\x10\x02\x12\x0c\n\x08SNIPPETS\x10\x03\x42\xfb\x01\n!com.google.ads.googleads.v1.enumsB&StructuredSnippetPlaceholderFieldProtoP\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,]) + + + +_STRUCTUREDSNIPPETPLACEHOLDERFIELDENUM_STRUCTUREDSNIPPETPLACEHOLDERFIELD = _descriptor.EnumDescriptor( + name='StructuredSnippetPlaceholderField', + full_name='google.ads.googleads.v1.enums.StructuredSnippetPlaceholderFieldEnum.StructuredSnippetPlaceholderField', + 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='HEADER', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SNIPPETS', index=3, number=3, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=185, + serialized_end=276, +) +_sym_db.RegisterEnumDescriptor(_STRUCTUREDSNIPPETPLACEHOLDERFIELDENUM_STRUCTUREDSNIPPETPLACEHOLDERFIELD) + + +_STRUCTUREDSNIPPETPLACEHOLDERFIELDENUM = _descriptor.Descriptor( + name='StructuredSnippetPlaceholderFieldEnum', + full_name='google.ads.googleads.v1.enums.StructuredSnippetPlaceholderFieldEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _STRUCTUREDSNIPPETPLACEHOLDERFIELDENUM_STRUCTUREDSNIPPETPLACEHOLDERFIELD, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=144, + serialized_end=276, +) + +_STRUCTUREDSNIPPETPLACEHOLDERFIELDENUM_STRUCTUREDSNIPPETPLACEHOLDERFIELD.containing_type = _STRUCTUREDSNIPPETPLACEHOLDERFIELDENUM +DESCRIPTOR.message_types_by_name['StructuredSnippetPlaceholderFieldEnum'] = _STRUCTUREDSNIPPETPLACEHOLDERFIELDENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +StructuredSnippetPlaceholderFieldEnum = _reflection.GeneratedProtocolMessageType('StructuredSnippetPlaceholderFieldEnum', (_message.Message,), dict( + DESCRIPTOR = _STRUCTUREDSNIPPETPLACEHOLDERFIELDENUM, + __module__ = 'google.ads.googleads_v1.proto.enums.structured_snippet_placeholder_field_pb2' + , + __doc__ = """Values for Structured Snippet placeholder fields. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.StructuredSnippetPlaceholderFieldEnum) + )) +_sym_db.RegisterMessage(StructuredSnippetPlaceholderFieldEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/structured_snippet_placeholder_field_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/structured_snippet_placeholder_field_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/structured_snippet_placeholder_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/v1/proto/enums/system_managed_entity_source_pb2.py b/google/ads/google_ads/v1/proto/enums/system_managed_entity_source_pb2.py new file mode 100644 index 000000000..0d252f524 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/system_managed_entity_source_pb2.py @@ -0,0 +1,96 @@ +# 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/system_managed_entity_source_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/system_managed_entity_source_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/system_managed_entity_source_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/enums/target_cpa_opt_in_recommendation_goal_pb2.py b/google/ads/google_ads/v1/proto/enums/target_cpa_opt_in_recommendation_goal_pb2.py new file mode 100644 index 000000000..d15565830 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/target_cpa_opt_in_recommendation_goal_pb2.py @@ -0,0 +1,108 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/enums/target_cpa_opt_in_recommendation_goal.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf 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/target_cpa_opt_in_recommendation_goal.proto', + package='google.ads.googleads.v1.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB%TargetCpaOptInRecommendationGoalProtoP\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/target_cpa_opt_in_recommendation_goal.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\xad\x01\n$TargetCpaOptInRecommendationGoalEnum\"\x84\x01\n TargetCpaOptInRecommendationGoal\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\r\n\tSAME_COST\x10\x02\x12\x14\n\x10SAME_CONVERSIONS\x10\x03\x12\x0c\n\x08SAME_CPA\x10\x04\x12\x0f\n\x0b\x43LOSEST_CPA\x10\x05\x42\xfa\x01\n!com.google.ads.googleads.v1.enumsB%TargetCpaOptInRecommendationGoalProtoP\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,]) + + + +_TARGETCPAOPTINRECOMMENDATIONGOALENUM_TARGETCPAOPTINRECOMMENDATIONGOAL = _descriptor.EnumDescriptor( + name='TargetCpaOptInRecommendationGoal', + full_name='google.ads.googleads.v1.enums.TargetCpaOptInRecommendationGoalEnum.TargetCpaOptInRecommendationGoal', + 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='SAME_COST', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SAME_CONVERSIONS', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SAME_CPA', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CLOSEST_CPA', index=5, number=5, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=186, + serialized_end=318, +) +_sym_db.RegisterEnumDescriptor(_TARGETCPAOPTINRECOMMENDATIONGOALENUM_TARGETCPAOPTINRECOMMENDATIONGOAL) + + +_TARGETCPAOPTINRECOMMENDATIONGOALENUM = _descriptor.Descriptor( + name='TargetCpaOptInRecommendationGoalEnum', + full_name='google.ads.googleads.v1.enums.TargetCpaOptInRecommendationGoalEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _TARGETCPAOPTINRECOMMENDATIONGOALENUM_TARGETCPAOPTINRECOMMENDATIONGOAL, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=145, + serialized_end=318, +) + +_TARGETCPAOPTINRECOMMENDATIONGOALENUM_TARGETCPAOPTINRECOMMENDATIONGOAL.containing_type = _TARGETCPAOPTINRECOMMENDATIONGOALENUM +DESCRIPTOR.message_types_by_name['TargetCpaOptInRecommendationGoalEnum'] = _TARGETCPAOPTINRECOMMENDATIONGOALENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +TargetCpaOptInRecommendationGoalEnum = _reflection.GeneratedProtocolMessageType('TargetCpaOptInRecommendationGoalEnum', (_message.Message,), dict( + DESCRIPTOR = _TARGETCPAOPTINRECOMMENDATIONGOALENUM, + __module__ = 'google.ads.googleads_v1.proto.enums.target_cpa_opt_in_recommendation_goal_pb2' + , + __doc__ = """Container for enum describing goals for TargetCpaOptIn recommendation. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.TargetCpaOptInRecommendationGoalEnum) + )) +_sym_db.RegisterMessage(TargetCpaOptInRecommendationGoalEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/target_cpa_opt_in_recommendation_goal_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/target_cpa_opt_in_recommendation_goal_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/target_cpa_opt_in_recommendation_goal_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/enums/target_impression_share_location_pb2.py b/google/ads/google_ads/v1/proto/enums/target_impression_share_location_pb2.py new file mode 100644 index 000000000..8e1aea58b --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/target_impression_share_location_pb2.py @@ -0,0 +1,106 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/enums/target_impression_share_location.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf 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/target_impression_share_location.proto', + package='google.ads.googleads.v1.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\"TargetImpressionShareLocationProtoP\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('\nJgoogle/ads/googleads_v1/proto/enums/target_impression_share_location.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\xa3\x01\n!TargetImpressionShareLocationEnum\"~\n\x1dTargetImpressionShareLocation\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x14\n\x10\x41NYWHERE_ON_PAGE\x10\x02\x12\x0f\n\x0bTOP_OF_PAGE\x10\x03\x12\x18\n\x14\x41\x42SOLUTE_TOP_OF_PAGE\x10\x04\x42\xf7\x01\n!com.google.ads.googleads.v1.enumsB\"TargetImpressionShareLocationProtoP\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,]) + + + +_TARGETIMPRESSIONSHARELOCATIONENUM_TARGETIMPRESSIONSHARELOCATION = _descriptor.EnumDescriptor( + name='TargetImpressionShareLocation', + full_name='google.ads.googleads.v1.enums.TargetImpressionShareLocationEnum.TargetImpressionShareLocation', + 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='ANYWHERE_ON_PAGE', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TOP_OF_PAGE', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ABSOLUTE_TOP_OF_PAGE', index=4, number=4, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=177, + serialized_end=303, +) +_sym_db.RegisterEnumDescriptor(_TARGETIMPRESSIONSHARELOCATIONENUM_TARGETIMPRESSIONSHARELOCATION) + + +_TARGETIMPRESSIONSHARELOCATIONENUM = _descriptor.Descriptor( + name='TargetImpressionShareLocationEnum', + full_name='google.ads.googleads.v1.enums.TargetImpressionShareLocationEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _TARGETIMPRESSIONSHARELOCATIONENUM_TARGETIMPRESSIONSHARELOCATION, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=140, + serialized_end=303, +) + +_TARGETIMPRESSIONSHARELOCATIONENUM_TARGETIMPRESSIONSHARELOCATION.containing_type = _TARGETIMPRESSIONSHARELOCATIONENUM +DESCRIPTOR.message_types_by_name['TargetImpressionShareLocationEnum'] = _TARGETIMPRESSIONSHARELOCATIONENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +TargetImpressionShareLocationEnum = _reflection.GeneratedProtocolMessageType('TargetImpressionShareLocationEnum', (_message.Message,), dict( + DESCRIPTOR = _TARGETIMPRESSIONSHARELOCATIONENUM, + __module__ = 'google.ads.googleads_v1.proto.enums.target_impression_share_location_pb2' + , + __doc__ = """Container for enum describing where on the first search results page the + automated bidding system should target impressions for the + TargetImpressionShare bidding strategy. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.TargetImpressionShareLocationEnum) + )) +_sym_db.RegisterMessage(TargetImpressionShareLocationEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/target_impression_share_location_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/target_impression_share_location_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/target_impression_share_location_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/enums/targeting_dimension_pb2.py b/google/ads/google_ads/v1/proto/enums/targeting_dimension_pb2.py new file mode 100644 index 000000000..e40511b02 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/targeting_dimension_pb2.py @@ -0,0 +1,124 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/enums/targeting_dimension.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf 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/targeting_dimension.proto', + package='google.ads.googleads.v1.enums', + syntax='proto3', + serialized_options=_b('\n!com.google.ads.googleads.v1.enumsB\027TargetingDimensionProtoP\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/targeting_dimension.proto\x12\x1dgoogle.ads.googleads.v1.enums\x1a\x1cgoogle/api/annotations.proto\"\xc4\x01\n\x16TargetingDimensionEnum\"\xa9\x01\n\x12TargetingDimension\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x0b\n\x07KEYWORD\x10\x02\x12\x0c\n\x08\x41UDIENCE\x10\x03\x12\t\n\x05TOPIC\x10\x04\x12\n\n\x06GENDER\x10\x05\x12\r\n\tAGE_RANGE\x10\x06\x12\r\n\tPLACEMENT\x10\x07\x12\x13\n\x0fPARENTAL_STATUS\x10\x08\x12\x10\n\x0cINCOME_RANGE\x10\tB\xec\x01\n!com.google.ads.googleads.v1.enumsB\x17TargetingDimensionProtoP\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,]) + + + +_TARGETINGDIMENSIONENUM_TARGETINGDIMENSION = _descriptor.EnumDescriptor( + name='TargetingDimension', + full_name='google.ads.googleads.v1.enums.TargetingDimensionEnum.TargetingDimension', + 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='KEYWORD', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AUDIENCE', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TOPIC', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='GENDER', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AGE_RANGE', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PLACEMENT', index=7, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PARENTAL_STATUS', index=8, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INCOME_RANGE', index=9, number=9, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=154, + serialized_end=323, +) +_sym_db.RegisterEnumDescriptor(_TARGETINGDIMENSIONENUM_TARGETINGDIMENSION) + + +_TARGETINGDIMENSIONENUM = _descriptor.Descriptor( + name='TargetingDimensionEnum', + full_name='google.ads.googleads.v1.enums.TargetingDimensionEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _TARGETINGDIMENSIONENUM_TARGETINGDIMENSION, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=127, + serialized_end=323, +) + +_TARGETINGDIMENSIONENUM_TARGETINGDIMENSION.containing_type = _TARGETINGDIMENSIONENUM +DESCRIPTOR.message_types_by_name['TargetingDimensionEnum'] = _TARGETINGDIMENSIONENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +TargetingDimensionEnum = _reflection.GeneratedProtocolMessageType('TargetingDimensionEnum', (_message.Message,), dict( + DESCRIPTOR = _TARGETINGDIMENSIONENUM, + __module__ = 'google.ads.googleads_v1.proto.enums.targeting_dimension_pb2' + , + __doc__ = """The dimensions that can be targeted. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.TargetingDimensionEnum) + )) +_sym_db.RegisterMessage(TargetingDimensionEnum) + + +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/v1/proto/enums/targeting_dimension_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/targeting_dimension_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/enums/time_type_pb2.py b/google/ads/google_ads/v1/proto/enums/time_type_pb2.py new file mode 100644 index 000000000..e04cc6d30 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/time_type_pb2.py @@ -0,0 +1,100 @@ +# 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/time_type_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/time_type_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/time_type_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/enums/tracking_code_page_format_pb2.py b/google/ads/google_ads/v1/proto/enums/tracking_code_page_format_pb2.py new file mode 100644 index 000000000..ed5246553 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/tracking_code_page_format_pb2.py @@ -0,0 +1,101 @@ +# 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_page_format_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/tracking_code_page_format_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/tracking_code_page_format_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/enums/tracking_code_type_pb2.py b/google/ads/google_ads/v1/proto/enums/tracking_code_type_pb2.py new file mode 100644 index 000000000..643f92582 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/tracking_code_type_pb2.py @@ -0,0 +1,105 @@ +# 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/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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_USERLISTSIZERANGEENUM_USERLISTSIZERANGE = _descriptor.EnumDescriptor( + name='UserListSizeRange', + full_name='google.ads.googleads.v1.enums.UserListSizeRangeEnum.UserListSizeRange', + 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='LESS_THAN_FIVE_HUNDRED', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LESS_THAN_ONE_THOUSAND', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ONE_THOUSAND_TO_TEN_THOUSAND', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TEN_THOUSAND_TO_FIFTY_THOUSAND', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FIFTY_THOUSAND_TO_ONE_HUNDRED_THOUSAND', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ONE_HUNDRED_THOUSAND_TO_THREE_HUNDRED_THOUSAND', index=7, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='THREE_HUNDRED_THOUSAND_TO_FIVE_HUNDRED_THOUSAND', index=8, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FIVE_HUNDRED_THOUSAND_TO_ONE_MILLION', index=9, number=9, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ONE_MILLION_TO_TWO_MILLION', index=10, number=10, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TWO_MILLION_TO_THREE_MILLION', index=11, number=11, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='THREE_MILLION_TO_FIVE_MILLION', index=12, number=12, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FIVE_MILLION_TO_TEN_MILLION', index=13, number=13, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TEN_MILLION_TO_TWENTY_MILLION', index=14, number=14, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TWENTY_MILLION_TO_THIRTY_MILLION', index=15, number=15, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='THIRTY_MILLION_TO_FIFTY_MILLION', index=16, number=16, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='OVER_FIFTY_MILLION', index=17, number=17, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=154, + serialized_end=788, +) +_sym_db.RegisterEnumDescriptor(_USERLISTSIZERANGEENUM_USERLISTSIZERANGE) + + +_USERLISTSIZERANGEENUM = _descriptor.Descriptor( + name='UserListSizeRangeEnum', + full_name='google.ads.googleads.v1.enums.UserListSizeRangeEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _USERLISTSIZERANGEENUM_USERLISTSIZERANGE, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=128, + serialized_end=788, +) + +_USERLISTSIZERANGEENUM_USERLISTSIZERANGE.containing_type = _USERLISTSIZERANGEENUM +DESCRIPTOR.message_types_by_name['UserListSizeRangeEnum'] = _USERLISTSIZERANGEENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +UserListSizeRangeEnum = _reflection.GeneratedProtocolMessageType('UserListSizeRangeEnum', (_message.Message,), dict( + DESCRIPTOR = _USERLISTSIZERANGEENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(UserListSizeRangeEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/user_list_size_range_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/user_list_size_range_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/user_list_size_range_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/enums/user_list_string_rule_item_operator_pb2.py b/google/ads/google_ads/v1/proto/enums/user_list_string_rule_item_operator_pb2.py new file mode 100644 index 000000000..15790c72a --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/user_list_string_rule_item_operator_pb2.py @@ -0,0 +1,124 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/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')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf 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/user_list_string_rule_item_operator.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_USERLISTSTRINGRULEITEMOPERATORENUM_USERLISTSTRINGRULEITEMOPERATOR = _descriptor.EnumDescriptor( + name='UserListStringRuleItemOperator', + full_name='google.ads.googleads.v1.enums.UserListStringRuleItemOperatorEnum.UserListStringRuleItemOperator', + 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='CONTAINS', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='EQUALS', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='STARTS_WITH', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ENDS_WITH', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NOT_EQUALS', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NOT_CONTAINS', index=7, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NOT_STARTS_WITH', index=8, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NOT_ENDS_WITH', index=9, number=9, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=182, + serialized_end=376, +) +_sym_db.RegisterEnumDescriptor(_USERLISTSTRINGRULEITEMOPERATORENUM_USERLISTSTRINGRULEITEMOPERATOR) + + +_USERLISTSTRINGRULEITEMOPERATORENUM = _descriptor.Descriptor( + name='UserListStringRuleItemOperatorEnum', + full_name='google.ads.googleads.v1.enums.UserListStringRuleItemOperatorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _USERLISTSTRINGRULEITEMOPERATORENUM_USERLISTSTRINGRULEITEMOPERATOR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=143, + serialized_end=376, +) + +_USERLISTSTRINGRULEITEMOPERATORENUM_USERLISTSTRINGRULEITEMOPERATOR.containing_type = _USERLISTSTRINGRULEITEMOPERATORENUM +DESCRIPTOR.message_types_by_name['UserListStringRuleItemOperatorEnum'] = _USERLISTSTRINGRULEITEMOPERATORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +UserListStringRuleItemOperatorEnum = _reflection.GeneratedProtocolMessageType('UserListStringRuleItemOperatorEnum', (_message.Message,), dict( + DESCRIPTOR = _USERLISTSTRINGRULEITEMOPERATORENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(UserListStringRuleItemOperatorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/user_list_string_rule_item_operator_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/user_list_string_rule_item_operator_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/user_list_string_rule_item_operator_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/enums/user_list_type_pb2.py b/google/ads/google_ads/v1/proto/enums/user_list_type_pb2.py new file mode 100644 index 000000000..a714858d7 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/user_list_type_pb2.py @@ -0,0 +1,116 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/enums/user_list_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/user_list_type.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_USERLISTTYPEENUM_USERLISTTYPE = _descriptor.EnumDescriptor( + name='UserListType', + full_name='google.ads.googleads.v1.enums.UserListTypeEnum.UserListType', + 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='REMARKETING', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LOGICAL', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='EXTERNAL_REMARKETING', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='RULE_BASED', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SIMILAR', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CRM_BASED', index=7, number=7, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=143, + serialized_end=287, +) +_sym_db.RegisterEnumDescriptor(_USERLISTTYPEENUM_USERLISTTYPE) + + +_USERLISTTYPEENUM = _descriptor.Descriptor( + name='UserListTypeEnum', + full_name='google.ads.googleads.v1.enums.UserListTypeEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _USERLISTTYPEENUM_USERLISTTYPE, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=122, + serialized_end=287, +) + +_USERLISTTYPEENUM_USERLISTTYPE.containing_type = _USERLISTTYPEENUM +DESCRIPTOR.message_types_by_name['UserListTypeEnum'] = _USERLISTTYPEENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +UserListTypeEnum = _reflection.GeneratedProtocolMessageType('UserListTypeEnum', (_message.Message,), dict( + DESCRIPTOR = _USERLISTTYPEENUM, + __module__ = 'google.ads.googleads_v1.proto.enums.user_list_type_pb2' + , + __doc__ = """The user list types. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.enums.UserListTypeEnum) + )) +_sym_db.RegisterMessage(UserListTypeEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/user_list_type_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/user_list_type_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/user_list_type_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/enums/vanity_pharma_display_url_mode_pb2.py b/google/ads/google_ads/v1/proto/enums/vanity_pharma_display_url_mode_pb2.py new file mode 100644 index 000000000..51d18a7e3 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/vanity_pharma_display_url_mode_pb2.py @@ -0,0 +1,100 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/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')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf 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/vanity_pharma_display_url_mode.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_VANITYPHARMADISPLAYURLMODEENUM_VANITYPHARMADISPLAYURLMODE = _descriptor.EnumDescriptor( + name='VanityPharmaDisplayUrlMode', + full_name='google.ads.googleads.v1.enums.VanityPharmaDisplayUrlModeEnum.VanityPharmaDisplayUrlMode', + 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='MANUFACTURER_WEBSITE_URL', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='WEBSITE_DESCRIPTION', index=3, number=3, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=172, + serialized_end=285, +) +_sym_db.RegisterEnumDescriptor(_VANITYPHARMADISPLAYURLMODEENUM_VANITYPHARMADISPLAYURLMODE) + + +_VANITYPHARMADISPLAYURLMODEENUM = _descriptor.Descriptor( + name='VanityPharmaDisplayUrlModeEnum', + full_name='google.ads.googleads.v1.enums.VanityPharmaDisplayUrlModeEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _VANITYPHARMADISPLAYURLMODEENUM_VANITYPHARMADISPLAYURLMODE, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=138, + serialized_end=285, +) + +_VANITYPHARMADISPLAYURLMODEENUM_VANITYPHARMADISPLAYURLMODE.containing_type = _VANITYPHARMADISPLAYURLMODEENUM +DESCRIPTOR.message_types_by_name['VanityPharmaDisplayUrlModeEnum'] = _VANITYPHARMADISPLAYURLMODEENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +VanityPharmaDisplayUrlModeEnum = _reflection.GeneratedProtocolMessageType('VanityPharmaDisplayUrlModeEnum', (_message.Message,), dict( + DESCRIPTOR = _VANITYPHARMADISPLAYURLMODEENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(VanityPharmaDisplayUrlModeEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/enums/vanity_pharma_display_url_mode_pb2_grpc.py b/google/ads/google_ads/v1/proto/enums/vanity_pharma_display_url_mode_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/vanity_pharma_display_url_mode_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/enums/vanity_pharma_text_pb2.py b/google/ads/google_ads/v1/proto/enums/vanity_pharma_text_pb2.py new file mode 100644 index 000000000..0e1905f10 --- /dev/null +++ b/google/ads/google_ads/v1/proto/enums/vanity_pharma_text_pb2.py @@ -0,0 +1,141 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/enums/vanity_pharma_text.proto + +import sys +_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf 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/vanity_pharma_text.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_ADCUSTOMIZERERRORENUM_ADCUSTOMIZERERROR = _descriptor.EnumDescriptor( + name='AdCustomizerError', + full_name='google.ads.googleads.v1.errors.AdCustomizerErrorEnum.AdCustomizerError', + 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='COUNTDOWN_INVALID_DATE_FORMAT', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='COUNTDOWN_DATE_IN_PAST', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='COUNTDOWN_INVALID_LOCALE', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='COUNTDOWN_INVALID_START_DAYS_BEFORE', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN_USER_LIST', index=6, number=6, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=155, + serialized_end=361, +) +_sym_db.RegisterEnumDescriptor(_ADCUSTOMIZERERRORENUM_ADCUSTOMIZERERROR) + + +_ADCUSTOMIZERERRORENUM = _descriptor.Descriptor( + name='AdCustomizerErrorEnum', + full_name='google.ads.googleads.v1.errors.AdCustomizerErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _ADCUSTOMIZERERRORENUM_ADCUSTOMIZERERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=129, + serialized_end=361, +) + +_ADCUSTOMIZERERRORENUM_ADCUSTOMIZERERROR.containing_type = _ADCUSTOMIZERERRORENUM +DESCRIPTOR.message_types_by_name['AdCustomizerErrorEnum'] = _ADCUSTOMIZERERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +AdCustomizerErrorEnum = _reflection.GeneratedProtocolMessageType('AdCustomizerErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _ADCUSTOMIZERERRORENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(AdCustomizerErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/ad_customizer_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/ad_customizer_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/ad_customizer_error_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/errors/ad_error_pb2.py b/google/ads/google_ads/v1/proto/errors/ad_error_pb2.py new file mode 100644 index 000000000..12148d67d --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/ad_error_pb2.py @@ -0,0 +1,596 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/errors/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_v1/proto/errors/ad_error.proto', + package='google.ads.googleads.v1.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\"\xe7\x1f\n\x0b\x41\x64\x45rrorEnum\"\xd7\x1f\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\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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_ADERRORENUM_ADERROR = _descriptor.EnumDescriptor( + name='AdError', + full_name='google.ads.googleads.v1.errors.AdErrorEnum.AdError', + 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_CUSTOMIZERS_NOT_SUPPORTED_FOR_AD_TYPE', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='APPROXIMATELY_TOO_LONG', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='APPROXIMATELY_TOO_SHORT', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BAD_SNIPPET', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_MODIFY_AD', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_SET_BUSINESS_NAME_IF_URL_SET', index=7, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_SET_FIELD', index=8, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_SET_FIELD_WITH_ORIGIN_AD_ID_SET', index=9, number=9, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_SET_FIELD_WITH_AD_ID_SET_FOR_SHARING', index=10, number=10, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_SET_ALLOW_FLEXIBLE_COLOR_FALSE', index=11, number=11, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_SET_COLOR_CONTROL_WHEN_NATIVE_FORMAT_SETTING', index=12, number=12, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_SET_URL', index=13, number=13, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_SET_WITHOUT_FINAL_URLS', index=14, number=14, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_SET_WITH_FINAL_URLS', index=15, number=15, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_SET_WITH_URL_DATA', index=16, number=17, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_USE_AD_SUBCLASS_FOR_OPERATOR', index=17, number=18, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CUSTOMER_NOT_APPROVED_MOBILEADS', index=18, number=19, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CUSTOMER_NOT_APPROVED_THIRDPARTY_ADS', index=19, number=20, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CUSTOMER_NOT_APPROVED_THIRDPARTY_REDIRECT_ADS', index=20, number=21, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CUSTOMER_NOT_ELIGIBLE', index=21, number=22, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CUSTOMER_NOT_ELIGIBLE_FOR_UPDATING_BEACON_URL', index=22, number=23, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DIMENSION_ALREADY_IN_UNION', index=23, number=24, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DIMENSION_MUST_BE_SET', index=24, number=25, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DIMENSION_NOT_IN_UNION', index=25, number=26, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DISPLAY_URL_CANNOT_BE_SPECIFIED', index=26, number=27, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DOMESTIC_PHONE_NUMBER_FORMAT', index=27, number=28, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='EMERGENCY_PHONE_NUMBER', index=28, number=29, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='EMPTY_FIELD', index=29, number=30, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FEED_ATTRIBUTE_MUST_HAVE_MAPPING_FOR_TYPE_ID', index=30, number=31, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FEED_ATTRIBUTE_MAPPING_TYPE_MISMATCH', index=31, number=32, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ILLEGAL_AD_CUSTOMIZER_TAG_USE', index=32, number=33, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ILLEGAL_TAG_USE', index=33, number=34, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INCONSISTENT_DIMENSIONS', index=34, number=35, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INCONSISTENT_STATUS_IN_TEMPLATE_UNION', index=35, number=36, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INCORRECT_LENGTH', index=36, number=37, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INELIGIBLE_FOR_UPGRADE', index=37, number=38, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_AD_ADDRESS_CAMPAIGN_TARGET', index=38, number=39, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_AD_TYPE', index=39, number=40, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_ATTRIBUTES_FOR_MOBILE_IMAGE', index=40, number=41, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_ATTRIBUTES_FOR_MOBILE_TEXT', index=41, number=42, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_CALL_TO_ACTION_TEXT', index=42, number=43, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_CHARACTER_FOR_URL', index=43, number=44, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_COUNTRY_CODE', index=44, number=45, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_EXPANDED_DYNAMIC_SEARCH_AD_TAG', index=45, number=47, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_INPUT', index=46, number=48, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_MARKUP_LANGUAGE', index=47, number=49, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_MOBILE_CARRIER', index=48, number=50, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_MOBILE_CARRIER_TARGET', index=49, number=51, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_NUMBER_OF_ELEMENTS', index=50, number=52, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_PHONE_NUMBER_FORMAT', index=51, number=53, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_RICH_MEDIA_CERTIFIED_VENDOR_FORMAT_ID', index=52, number=54, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_TEMPLATE_DATA', index=53, number=55, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_TEMPLATE_ELEMENT_FIELD_TYPE', index=54, number=56, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_TEMPLATE_ID', index=55, number=57, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LINE_TOO_WIDE', index=56, number=58, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_AD_CUSTOMIZER_MAPPING', index=57, number=59, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_ADDRESS_COMPONENT', index=58, number=60, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_ADVERTISEMENT_NAME', index=59, number=61, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_BUSINESS_NAME', index=60, number=62, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_DESCRIPTION1', index=61, number=63, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_DESCRIPTION2', index=62, number=64, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_DESTINATION_URL_TAG', index=63, number=65, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_LANDING_PAGE_URL_TAG', index=64, number=66, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_DIMENSION', index=65, number=67, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_DISPLAY_URL', index=66, number=68, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_HEADLINE', index=67, number=69, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_HEIGHT', index=68, number=70, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_IMAGE', index=69, number=71, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_MARKETING_IMAGE_OR_PRODUCT_VIDEOS', index=70, number=72, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_MARKUP_LANGUAGES', index=71, number=73, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_MOBILE_CARRIER', index=72, number=74, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_PHONE', index=73, number=75, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_REQUIRED_TEMPLATE_FIELDS', index=74, number=76, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_TEMPLATE_FIELD_VALUE', index=75, number=77, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_TEXT', index=76, number=78, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_VISIBLE_URL', index=77, number=79, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_WIDTH', index=78, number=80, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MULTIPLE_DISTINCT_FEEDS_UNSUPPORTED', index=79, number=81, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MUST_USE_TEMP_AD_UNION_ID_ON_ADD', index=80, number=82, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TOO_LONG', index=81, number=83, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TOO_SHORT', index=82, number=84, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNION_DIMENSIONS_CANNOT_CHANGE', index=83, number=85, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN_ADDRESS_COMPONENT', index=84, number=86, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN_FIELD_NAME', index=85, number=87, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN_UNIQUE_NAME', index=86, number=88, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNSUPPORTED_DIMENSIONS', index=87, number=89, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='URL_INVALID_SCHEME', index=88, number=90, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='URL_INVALID_TOP_LEVEL_DOMAIN', index=89, number=91, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='URL_MALFORMED', index=90, number=92, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='URL_NO_HOST', index=91, number=93, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='URL_NOT_EQUIVALENT', index=92, number=94, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='URL_HOST_NAME_TOO_LONG', index=93, number=95, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='URL_NO_SCHEME', index=94, number=96, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='URL_NO_TOP_LEVEL_DOMAIN', index=95, number=97, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='URL_PATH_NOT_ALLOWED', index=96, number=98, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='URL_PORT_NOT_ALLOWED', index=97, number=99, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='URL_QUERY_NOT_ALLOWED', index=98, number=100, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='URL_SCHEME_BEFORE_EXPANDED_DYNAMIC_SEARCH_AD_TAG', index=99, number=102, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='USER_DOES_NOT_HAVE_ACCESS_TO_TEMPLATE', index=100, number=103, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INCONSISTENT_EXPANDABLE_SETTINGS', index=101, number=104, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_FORMAT', index=102, number=105, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_FIELD_TEXT', index=103, number=106, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ELEMENT_NOT_PRESENT', index=104, number=107, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='IMAGE_ERROR', index=105, number=108, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='VALUE_NOT_IN_RANGE', index=106, number=109, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FIELD_NOT_PRESENT', index=107, number=110, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ADDRESS_NOT_COMPLETE', index=108, number=111, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ADDRESS_INVALID', index=109, number=112, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='VIDEO_RETRIEVAL_ERROR', index=110, number=113, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AUDIO_ERROR', index=111, number=114, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_YOUTUBE_DISPLAY_URL', index=112, number=115, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TOO_MANY_PRODUCT_IMAGES', index=113, number=116, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TOO_MANY_PRODUCT_VIDEOS', index=114, number=117, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INCOMPATIBLE_AD_TYPE_AND_DEVICE_PREFERENCE', index=115, number=118, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY', index=116, number=119, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED', index=117, number=120, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DISALLOWED_NUMBER_TYPE', index=118, number=121, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY', index=119, number=122, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PHONE_NUMBER_NOT_SUPPORTED_WITH_CALLTRACKING_FOR_COUNTRY', index=120, number=123, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PREMIUM_RATE_NUMBER_NOT_ALLOWED', index=121, number=124, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='VANITY_PHONE_NUMBER_NOT_ALLOWED', index=122, number=125, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_CALL_CONVERSION_TYPE_ID', index=123, number=126, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_DISABLE_CALL_CONVERSION_AND_SET_CONVERSION_TYPE_ID', index=124, number=127, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_SET_PATH2_WITHOUT_PATH1', index=125, number=128, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_DYNAMIC_SEARCH_ADS_SETTING_DOMAIN_NAME', index=126, number=129, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INCOMPATIBLE_WITH_RESTRICTION_TYPE', index=127, number=130, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=134, + serialized_end=4189, +) +_sym_db.RegisterEnumDescriptor(_ADERRORENUM_ADERROR) + + +_ADERRORENUM = _descriptor.Descriptor( + name='AdErrorEnum', + full_name='google.ads.googleads.v1.errors.AdErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _ADERRORENUM_ADERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=118, + serialized_end=4189, +) + +_ADERRORENUM_ADERROR.containing_type = _ADERRORENUM +DESCRIPTOR.message_types_by_name['AdErrorEnum'] = _ADERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +AdErrorEnum = _reflection.GeneratedProtocolMessageType('AdErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _ADERRORENUM, + __module__ = 'google.ads.googleads_v1.proto.errors.ad_error_pb2' + , + __doc__ = """Container for enum describing possible ad errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.AdErrorEnum) + )) +_sym_db.RegisterMessage(AdErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/ad_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/ad_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/ad_error_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/errors/ad_group_ad_error_pb2.py b/google/ads/google_ads/v1/proto/errors/ad_group_ad_error_pb2.py new file mode 100644 index 000000000..caf8fdbbc --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/ad_group_ad_error_pb2.py @@ -0,0 +1,124 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/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_v1/proto/errors/ad_group_ad_error.proto', + package='google.ads.googleads.v1.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\023AdGroupAdErrorProtoP\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('\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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_ADGROUPERRORENUM_ADGROUPERROR = _descriptor.EnumDescriptor( + name='AdGroupError', + full_name='google.ads.googleads.v1.errors.AdGroupErrorEnum.AdGroupError', + 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_ADGROUP_NAME', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_ADGROUP_NAME', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ADVERTISER_NOT_ON_CONTENT_NETWORK', index=4, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BID_TOO_BIG', index=5, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BID_TYPE_AND_BIDDING_STRATEGY_MISMATCH', index=6, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_ADGROUP_NAME', index=7, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ADGROUP_LABEL_DOES_NOT_EXIST', index=8, number=9, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ADGROUP_LABEL_ALREADY_EXISTS', index=9, number=10, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_CONTENT_BID_CRITERION_TYPE_GROUP', index=10, number=11, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AD_GROUP_TYPE_NOT_VALID_FOR_ADVERTISING_CHANNEL_TYPE', index=11, number=12, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ADGROUP_TYPE_NOT_SUPPORTED_FOR_CAMPAIGN_SALES_COUNTRY', index=12, number=13, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_ADD_ADGROUP_OF_TYPE_DSA_TO_CAMPAIGN_WITHOUT_DSA_SETTING', index=13, number=14, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=145, + serialized_end=668, +) +_sym_db.RegisterEnumDescriptor(_ADGROUPERRORENUM_ADGROUPERROR) + + +_ADGROUPERRORENUM = _descriptor.Descriptor( + name='AdGroupErrorEnum', + full_name='google.ads.googleads.v1.errors.AdGroupErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _ADGROUPERRORENUM_ADGROUPERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=124, + serialized_end=668, +) + +_ADGROUPERRORENUM_ADGROUPERROR.containing_type = _ADGROUPERRORENUM +DESCRIPTOR.message_types_by_name['AdGroupErrorEnum'] = _ADGROUPERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +AdGroupErrorEnum = _reflection.GeneratedProtocolMessageType('AdGroupErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _ADGROUPERRORENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(AdGroupErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/ad_group_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/ad_group_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/ad_group_error_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/errors/ad_group_feed_error_pb2.py b/google/ads/google_ads/v1/proto/errors/ad_group_feed_error_pb2.py new file mode 100644 index 000000000..0bf843d08 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/ad_group_feed_error_pb2.py @@ -0,0 +1,120 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/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')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf 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/ad_group_feed_error.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_ADGROUPFEEDERRORENUM_ADGROUPFEEDERROR = _descriptor.EnumDescriptor( + name='AdGroupFeedError', + full_name='google.ads.googleads.v1.errors.AdGroupFeedErrorEnum.AdGroupFeedError', + 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=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ADGROUP_FEED_ALREADY_EXISTS', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_OPERATE_ON_REMOVED_ADGROUP_FEED', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_PLACEHOLDER_TYPE', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE', index=7, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NO_EXISTING_LOCATION_CUSTOMER_FEED', index=8, number=8, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=154, + serialized_end=477, +) +_sym_db.RegisterEnumDescriptor(_ADGROUPFEEDERRORENUM_ADGROUPFEEDERROR) + + +_ADGROUPFEEDERRORENUM = _descriptor.Descriptor( + name='AdGroupFeedErrorEnum', + full_name='google.ads.googleads.v1.errors.AdGroupFeedErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _ADGROUPFEEDERRORENUM_ADGROUPFEEDERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=129, + serialized_end=477, +) + +_ADGROUPFEEDERRORENUM_ADGROUPFEEDERROR.containing_type = _ADGROUPFEEDERRORENUM +DESCRIPTOR.message_types_by_name['AdGroupFeedErrorEnum'] = _ADGROUPFEEDERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +AdGroupFeedErrorEnum = _reflection.GeneratedProtocolMessageType('AdGroupFeedErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _ADGROUPFEEDERRORENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(AdGroupFeedErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/ad_group_feed_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/ad_group_feed_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/ad_group_feed_error_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/errors/ad_parameter_error_pb2.py b/google/ads/google_ads/v1/proto/errors/ad_parameter_error_pb2.py new file mode 100644 index 000000000..6a8191b67 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/ad_parameter_error_pb2.py @@ -0,0 +1,100 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/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_v1/proto/errors/ad_parameter_error.proto', + package='google.ads.googleads.v1.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\025AdParameterErrorProtoP\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_parameter_error.proto\x12\x1egoogle.ads.googleads.v1.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.v1.errorsB\x15\x41\x64ParameterErrorProtoP\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,]) + + + +_ADPARAMETERERRORENUM_ADPARAMETERERROR = _descriptor.EnumDescriptor( + name='AdParameterError', + full_name='google.ads.googleads.v1.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.v1.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_v1.proto.errors.ad_parameter_error_pb2' + , + __doc__ = """Container for enum describing possible ad parameter errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.AdParameterErrorEnum) + )) +_sym_db.RegisterMessage(AdParameterErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/ad_parameter_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/ad_parameter_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/ad_parameter_error_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/errors/ad_sharing_error_pb2.py b/google/ads/google_ads/v1/proto/errors/ad_sharing_error_pb2.py new file mode 100644 index 000000000..977ea10c9 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/ad_sharing_error_pb2.py @@ -0,0 +1,104 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/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_v1/proto/errors/ad_sharing_error.proto', + package='google.ads.googleads.v1.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\023AdSharingErrorProtoP\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_sharing_error.proto\x12\x1egoogle.ads.googleads.v1.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.v1.errorsB\x13\x41\x64SharingErrorProtoP\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,]) + + + +_ADSHARINGERRORENUM_ADSHARINGERROR = _descriptor.EnumDescriptor( + name='AdSharingError', + full_name='google.ads.googleads.v1.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.v1.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_v1.proto.errors.ad_sharing_error_pb2' + , + __doc__ = """Container for enum describing possible ad sharing errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.AdSharingErrorEnum) + )) +_sym_db.RegisterMessage(AdSharingErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/ad_sharing_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/ad_sharing_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/ad_sharing_error_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/errors/adx_error_pb2.py b/google/ads/google_ads/v1/proto/errors/adx_error_pb2.py new file mode 100644 index 000000000..a0e60fc75 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/adx_error_pb2.py @@ -0,0 +1,96 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/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_v1/proto/errors/adx_error.proto', + package='google.ads.googleads.v1.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\rAdxErrorProtoP\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('\n4google/ads/googleads_v1/proto/errors/adx_error.proto\x12\x1egoogle.ads.googleads.v1.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.v1.errorsB\rAdxErrorProtoP\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,]) + + + +_ADXERRORENUM_ADXERROR = _descriptor.EnumDescriptor( + name='AdxError', + full_name='google.ads.googleads.v1.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.v1.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_v1.proto.errors.adx_error_pb2' + , + __doc__ = """Container for enum describing possible adx errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.AdxErrorEnum) + )) +_sym_db.RegisterMessage(AdxErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/adx_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/adx_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/adx_error_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/errors/authentication_error_pb2.py b/google/ads/google_ads/v1/proto/errors/authentication_error_pb2.py new file mode 100644 index 000000000..f22397592 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/authentication_error_pb2.py @@ -0,0 +1,164 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/errors/authentication_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/authentication_error.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_AUTHENTICATIONERRORENUM_AUTHENTICATIONERROR = _descriptor.EnumDescriptor( + name='AuthenticationError', + full_name='google.ads.googleads.v1.errors.AuthenticationErrorEnum.AuthenticationError', + 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='AUTHENTICATION_ERROR', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CLIENT_CUSTOMER_ID_INVALID', index=3, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CUSTOMER_NOT_FOUND', index=4, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='GOOGLE_ACCOUNT_DELETED', index=5, number=9, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='GOOGLE_ACCOUNT_COOKIE_INVALID', index=6, number=10, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='GOOGLE_ACCOUNT_AUTHENTICATION_FAILED', index=7, number=25, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='GOOGLE_ACCOUNT_USER_AND_ADS_USER_MISMATCH', index=8, number=12, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LOGIN_COOKIE_REQUIRED', index=9, number=13, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NOT_ADS_USER', index=10, number=14, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='OAUTH_TOKEN_INVALID', index=11, number=15, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='OAUTH_TOKEN_EXPIRED', index=12, number=16, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='OAUTH_TOKEN_DISABLED', index=13, number=17, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='OAUTH_TOKEN_REVOKED', index=14, number=18, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='OAUTH_TOKEN_HEADER_INVALID', index=15, number=19, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LOGIN_COOKIE_INVALID', index=16, number=20, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='USER_ID_INVALID', index=17, number=22, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TWO_STEP_VERIFICATION_NOT_ENROLLED', index=18, number=23, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ADVANCED_PROTECTION_NOT_ENROLLED', index=19, number=24, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=158, + serialized_end=746, +) +_sym_db.RegisterEnumDescriptor(_AUTHENTICATIONERRORENUM_AUTHENTICATIONERROR) + + +_AUTHENTICATIONERRORENUM = _descriptor.Descriptor( + name='AuthenticationErrorEnum', + full_name='google.ads.googleads.v1.errors.AuthenticationErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _AUTHENTICATIONERRORENUM_AUTHENTICATIONERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=130, + serialized_end=746, +) + +_AUTHENTICATIONERRORENUM_AUTHENTICATIONERROR.containing_type = _AUTHENTICATIONERRORENUM +DESCRIPTOR.message_types_by_name['AuthenticationErrorEnum'] = _AUTHENTICATIONERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +AuthenticationErrorEnum = _reflection.GeneratedProtocolMessageType('AuthenticationErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _AUTHENTICATIONERRORENUM, + __module__ = 'google.ads.googleads_v1.proto.errors.authentication_error_pb2' + , + __doc__ = """Container for enum describing possible authentication errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.AuthenticationErrorEnum) + )) +_sym_db.RegisterMessage(AuthenticationErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/authentication_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/authentication_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/authentication_error_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/errors/authorization_error_pb2.py b/google/ads/google_ads/v1/proto/errors/authorization_error_pb2.py new file mode 100644 index 000000000..31c7edb5d --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/authorization_error_pb2.py @@ -0,0 +1,128 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/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_v1/proto/errors/authorization_error.proto', + package='google.ads.googleads.v1.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\027AuthorizationErrorProtoP\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/authorization_error.proto\x12\x1egoogle.ads.googleads.v1.errors\x1a\x1cgoogle/api/annotations.proto\"\xb9\x02\n\x16\x41uthorizationErrorEnum\"\x9e\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\tB\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), + ], + containing_type=None, + serialized_options=None, + serialized_start=156, + serialized_end=442, +) +_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=442, +) + +_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/authorization_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/authorization_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/authorization_error_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/errors/bidding_error_pb2.py b/google/ads/google_ads/v1/proto/errors/bidding_error_pb2.py new file mode 100644 index 000000000..56aa1c8b9 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/bidding_error_pb2.py @@ -0,0 +1,176 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/errors/bidding_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/bidding_error.proto', + package='google.ads.googleads.v1.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\"\xdf\x07\n\x10\x42iddingErrorEnum\"\xca\x07\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\"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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_BIDDINGERRORENUM_BIDDINGERROR = _descriptor.EnumDescriptor( + name='BiddingError', + full_name='google.ads.googleads.v1.errors.BiddingErrorEnum.BiddingError', + 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='BIDDING_STRATEGY_TRANSITION_NOT_ALLOWED', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_ATTACH_BIDDING_STRATEGY_TO_CAMPAIGN', index=3, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_ANONYMOUS_BIDDING_STRATEGY_TYPE', index=4, number=10, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_BIDDING_STRATEGY_TYPE', index=5, number=14, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_BID', index=6, number=17, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BIDDING_STRATEGY_NOT_AVAILABLE_FOR_ACCOUNT_TYPE', index=7, number=18, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CONVERSION_TRACKING_NOT_ENABLED', index=8, number=19, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NOT_ENOUGH_CONVERSIONS', index=9, number=20, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_CREATE_CAMPAIGN_WITH_BIDDING_STRATEGY', index=10, number=21, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_TARGET_CONTENT_NETWORK_ONLY_WITH_CAMPAIGN_LEVEL_POP_BIDDING_STRATEGY', index=11, number=23, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BIDDING_STRATEGY_NOT_SUPPORTED_WITH_AD_SCHEDULE', index=12, number=24, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PAY_PER_CONVERSION_NOT_AVAILABLE_FOR_CUSTOMER', index=13, number=25, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PAY_PER_CONVERSION_NOT_ALLOWED_WITH_TARGET_CPA', index=14, number=26, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BIDDING_STRATEGY_NOT_ALLOWED_FOR_SEARCH_ONLY_CAMPAIGNS', index=15, number=27, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BIDDING_STRATEGY_NOT_SUPPORTED_IN_DRAFTS_OR_EXPERIMENTS', index=16, number=28, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BIDDING_STRATEGY_TYPE_DOES_NOT_SUPPORT_PRODUCT_TYPE_ADGROUP_CRITERION', index=17, number=29, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BID_TOO_SMALL', index=18, number=30, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BID_TOO_BIG', index=19, number=31, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BID_TOO_MANY_FRACTIONAL_DIGITS', index=20, number=32, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_DOMAIN_NAME', index=21, number=33, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NOT_COMPATIBLE_WITH_PAYMENT_MODE', index=22, number=34, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=144, + serialized_end=1114, +) +_sym_db.RegisterEnumDescriptor(_BIDDINGERRORENUM_BIDDINGERROR) + + +_BIDDINGERRORENUM = _descriptor.Descriptor( + name='BiddingErrorEnum', + full_name='google.ads.googleads.v1.errors.BiddingErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _BIDDINGERRORENUM_BIDDINGERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=123, + serialized_end=1114, +) + +_BIDDINGERRORENUM_BIDDINGERROR.containing_type = _BIDDINGERRORENUM +DESCRIPTOR.message_types_by_name['BiddingErrorEnum'] = _BIDDINGERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +BiddingErrorEnum = _reflection.GeneratedProtocolMessageType('BiddingErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _BIDDINGERRORENUM, + __module__ = 'google.ads.googleads_v1.proto.errors.bidding_error_pb2' + , + __doc__ = """Container for enum describing possible bidding errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.BiddingErrorEnum) + )) +_sym_db.RegisterMessage(BiddingErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/bidding_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/bidding_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/bidding_error_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/errors/bidding_strategy_error_pb2.py b/google/ads/google_ads/v1/proto/errors/bidding_strategy_error_pb2.py new file mode 100644 index 000000000..4d74eea97 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/bidding_strategy_error_pb2.py @@ -0,0 +1,108 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/errors/bidding_strategy_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/bidding_strategy_error.proto', + package='google.ads.googleads.v1.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\"\xd9\x01\n\x18\x42iddingStrategyErrorEnum\"\xbc\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\x42\xf4\x01\n\"com.google.ads.googleads.v1.errorsB\x19\x42iddingStrategyErrorProtoP\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,]) + + + +_BIDDINGSTRATEGYERRORENUM_BIDDINGSTRATEGYERROR = _descriptor.EnumDescriptor( + name='BiddingStrategyError', + full_name='google.ads.googleads.v1.errors.BiddingStrategyErrorEnum.BiddingStrategyError', + 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='CANNOT_CHANGE_BIDDING_STRATEGY_TYPE', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_REMOVE_ASSOCIATED_STRATEGY', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BIDDING_STRATEGY_NOT_SUPPORTED', index=5, number=5, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=161, + serialized_end=349, +) +_sym_db.RegisterEnumDescriptor(_BIDDINGSTRATEGYERRORENUM_BIDDINGSTRATEGYERROR) + + +_BIDDINGSTRATEGYERRORENUM = _descriptor.Descriptor( + name='BiddingStrategyErrorEnum', + full_name='google.ads.googleads.v1.errors.BiddingStrategyErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _BIDDINGSTRATEGYERRORENUM_BIDDINGSTRATEGYERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=132, + serialized_end=349, +) + +_BIDDINGSTRATEGYERRORENUM_BIDDINGSTRATEGYERROR.containing_type = _BIDDINGSTRATEGYERRORENUM +DESCRIPTOR.message_types_by_name['BiddingStrategyErrorEnum'] = _BIDDINGSTRATEGYERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +BiddingStrategyErrorEnum = _reflection.GeneratedProtocolMessageType('BiddingStrategyErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _BIDDINGSTRATEGYERRORENUM, + __module__ = 'google.ads.googleads_v1.proto.errors.bidding_strategy_error_pb2' + , + __doc__ = """Container for enum describing possible bidding strategy errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.BiddingStrategyErrorEnum) + )) +_sym_db.RegisterMessage(BiddingStrategyErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/bidding_strategy_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/bidding_strategy_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/bidding_strategy_error_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/errors/billing_setup_error_pb2.py b/google/ads/google_ads/v1/proto/errors/billing_setup_error_pb2.py new file mode 100644 index 000000000..dfb359571 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/billing_setup_error_pb2.py @@ -0,0 +1,152 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/errors/billing_setup_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/billing_setup_error.proto', + package='google.ads.googleads.v1.errors', + syntax='proto3', + serialized_options=_b('\n\"com.google.ads.googleads.v1.errorsB\026BillingSetupErrorProtoP\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/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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_BILLINGSETUPERRORENUM_BILLINGSETUPERROR = _descriptor.EnumDescriptor( + name='BillingSetupError', + full_name='google.ads.googleads.v1.errors.BillingSetupErrorEnum.BillingSetupError', + 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_USE_EXISTING_AND_NEW_ACCOUNT', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_REMOVE_STARTED_BILLING_SETUP', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_CHANGE_BILLING_TO_SAME_PAYMENTS_ACCOUNT', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BILLING_SETUP_NOT_PERMITTED_FOR_CUSTOMER_STATUS', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_PAYMENTS_ACCOUNT', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BILLING_SETUP_NOT_PERMITTED_FOR_CUSTOMER_CATEGORY', index=7, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_START_TIME_TYPE', index=8, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='THIRD_PARTY_ALREADY_HAS_BILLING', index=9, number=9, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BILLING_SETUP_IN_PROGRESS', index=10, number=10, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NO_SIGNUP_PERMISSION', index=11, number=11, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CHANGE_OF_BILL_TO_IN_PROGRESS', index=12, number=12, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PAYMENTS_PROFILE_NOT_FOUND', index=13, number=13, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PAYMENTS_ACCOUNT_NOT_FOUND', index=14, number=14, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PAYMENTS_PROFILE_INELIGIBLE', index=15, number=15, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PAYMENTS_ACCOUNT_INELIGIBLE', index=16, number=16, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=155, + serialized_end=764, +) +_sym_db.RegisterEnumDescriptor(_BILLINGSETUPERRORENUM_BILLINGSETUPERROR) + + +_BILLINGSETUPERRORENUM = _descriptor.Descriptor( + name='BillingSetupErrorEnum', + full_name='google.ads.googleads.v1.errors.BillingSetupErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _BILLINGSETUPERRORENUM_BILLINGSETUPERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=129, + serialized_end=764, +) + +_BILLINGSETUPERRORENUM_BILLINGSETUPERROR.containing_type = _BILLINGSETUPERRORENUM +DESCRIPTOR.message_types_by_name['BillingSetupErrorEnum'] = _BILLINGSETUPERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +BillingSetupErrorEnum = _reflection.GeneratedProtocolMessageType('BillingSetupErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _BILLINGSETUPERRORENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(BillingSetupErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/billing_setup_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/billing_setup_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/billing_setup_error_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/errors/campaign_budget_error_pb2.py b/google/ads/google_ads/v1/proto/errors/campaign_budget_error_pb2.py new file mode 100644 index 000000000..82535d99f --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/campaign_budget_error_pb2.py @@ -0,0 +1,152 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/errors/campaign_budget_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_budget_error.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_CAMPAIGNBUDGETERRORENUM_CAMPAIGNBUDGETERROR = _descriptor.EnumDescriptor( + name='CampaignBudgetError', + full_name='google.ads.googleads.v1.errors.CampaignBudgetErrorEnum.CampaignBudgetError', + 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_BUDGET_CANNOT_BE_SHARED', index=2, number=17, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CAMPAIGN_BUDGET_REMOVED', index=3, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CAMPAIGN_BUDGET_IN_USE', index=4, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CAMPAIGN_BUDGET_PERIOD_NOT_AVAILABLE', index=5, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_MODIFY_FIELD_OF_IMPLICITLY_SHARED_CAMPAIGN_BUDGET', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_IMPLICITLY_SHARED', index=7, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_EXPLICITLY_SHARED_WITHOUT_NAME', index=8, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_EXPLICITLY_SHARED', index=9, number=9, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_USE_IMPLICITLY_SHARED_CAMPAIGN_BUDGET_WITH_MULTIPLE_CAMPAIGNS', index=10, number=10, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DUPLICATE_NAME', index=11, number=11, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MONEY_AMOUNT_IN_WRONG_CURRENCY', index=12, number=12, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MONEY_AMOUNT_LESS_THAN_CURRENCY_MINIMUM_CPC', index=13, number=13, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MONEY_AMOUNT_TOO_LARGE', index=14, number=14, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NEGATIVE_MONEY_AMOUNT', index=15, number=15, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NON_MULTIPLE_OF_MINIMUM_CURRENCY_UNIT', index=16, number=16, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=159, + serialized_end=867, +) +_sym_db.RegisterEnumDescriptor(_CAMPAIGNBUDGETERRORENUM_CAMPAIGNBUDGETERROR) + + +_CAMPAIGNBUDGETERRORENUM = _descriptor.Descriptor( + name='CampaignBudgetErrorEnum', + full_name='google.ads.googleads.v1.errors.CampaignBudgetErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _CAMPAIGNBUDGETERRORENUM_CAMPAIGNBUDGETERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=131, + serialized_end=867, +) + +_CAMPAIGNBUDGETERRORENUM_CAMPAIGNBUDGETERROR.containing_type = _CAMPAIGNBUDGETERRORENUM +DESCRIPTOR.message_types_by_name['CampaignBudgetErrorEnum'] = _CAMPAIGNBUDGETERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +CampaignBudgetErrorEnum = _reflection.GeneratedProtocolMessageType('CampaignBudgetErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _CAMPAIGNBUDGETERRORENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(CampaignBudgetErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/campaign_budget_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/campaign_budget_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/campaign_budget_error_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/errors/campaign_criterion_error_pb2.py b/google/ads/google_ads/v1/proto/errors/campaign_criterion_error_pb2.py new file mode 100644 index 000000000..2c3bc500d --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/campaign_criterion_error_pb2.py @@ -0,0 +1,136 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/errors/campaign_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/campaign_criterion_error.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_CAMPAIGNCRITERIONERRORENUM_CAMPAIGNCRITERIONERROR = _descriptor.EnumDescriptor( + name='CampaignCriterionError', + full_name='google.ads.googleads.v1.errors.CampaignCriterionErrorEnum.CampaignCriterionError', + 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_PLACEMENT_URL', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_EXCLUDE_CRITERIA_TYPE', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_SET_STATUS_FOR_CRITERIA_TYPE', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_SET_STATUS_FOR_EXCLUDED_CRITERIA', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_TARGET_AND_EXCLUDE', index=7, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TOO_MANY_OPERATIONS', index=8, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='OPERATOR_NOT_SUPPORTED_FOR_CRITERION_TYPE', index=9, number=9, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SHOPPING_CAMPAIGN_SALES_COUNTRY_NOT_SUPPORTED_FOR_SALES_CHANNEL', index=10, number=10, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_ADD_EXISTING_FIELD', index=11, number=11, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_UPDATE_NEGATIVE_CRITERION', index=12, number=12, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=165, + serialized_end=635, +) +_sym_db.RegisterEnumDescriptor(_CAMPAIGNCRITERIONERRORENUM_CAMPAIGNCRITERIONERROR) + + +_CAMPAIGNCRITERIONERRORENUM = _descriptor.Descriptor( + name='CampaignCriterionErrorEnum', + full_name='google.ads.googleads.v1.errors.CampaignCriterionErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _CAMPAIGNCRITERIONERRORENUM_CAMPAIGNCRITERIONERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=134, + serialized_end=635, +) + +_CAMPAIGNCRITERIONERRORENUM_CAMPAIGNCRITERIONERROR.containing_type = _CAMPAIGNCRITERIONERRORENUM +DESCRIPTOR.message_types_by_name['CampaignCriterionErrorEnum'] = _CAMPAIGNCRITERIONERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +CampaignCriterionErrorEnum = _reflection.GeneratedProtocolMessageType('CampaignCriterionErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _CAMPAIGNCRITERIONERRORENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(CampaignCriterionErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/campaign_criterion_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/campaign_criterion_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/campaign_criterion_error_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/errors/campaign_error_pb2.py b/google/ads/google_ads/v1/proto/errors/campaign_error_pb2.py new file mode 100644 index 000000000..5a30f5b2a --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/campaign_error_pb2.py @@ -0,0 +1,236 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/errors/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/campaign_error.proto', + package='google.ads.googleads.v1.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\"\x96\x0c\n\x11\x43\x61mpaignErrorEnum\"\x80\x0c\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(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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_CAMPAIGNERRORENUM_CAMPAIGNERROR = _descriptor.EnumDescriptor( + name='CampaignError', + full_name='google.ads.googleads.v1.errors.CampaignErrorEnum.CampaignError', + 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_TARGET_CONTENT_NETWORK', index=2, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_TARGET_SEARCH_NETWORK', index=3, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_TARGET_SEARCH_NETWORK_WITHOUT_GOOGLE_SEARCH', index=4, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_TARGET_GOOGLE_SEARCH_FOR_CPM_CAMPAIGN', index=5, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CAMPAIGN_MUST_TARGET_AT_LEAST_ONE_NETWORK', index=6, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_TARGET_PARTNER_SEARCH_NETWORK', index=7, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_TARGET_CONTENT_NETWORK_ONLY_WITH_CRITERIA_LEVEL_BIDDING_STRATEGY', index=8, number=9, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CAMPAIGN_DURATION_MUST_CONTAIN_ALL_RUNNABLE_TRIALS', index=9, number=10, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_MODIFY_FOR_TRIAL_CAMPAIGN', index=10, number=11, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DUPLICATE_CAMPAIGN_NAME', index=11, number=12, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INCOMPATIBLE_CAMPAIGN_FIELD', index=12, number=13, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_CAMPAIGN_NAME', index=13, number=14, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_AD_SERVING_OPTIMIZATION_STATUS', index=14, number=15, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_TRACKING_URL', index=15, number=16, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_SET_BOTH_TRACKING_URL_TEMPLATE_AND_TRACKING_SETTING', index=16, number=17, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MAX_IMPRESSIONS_NOT_IN_RANGE', index=17, number=18, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TIME_UNIT_NOT_SUPPORTED', index=18, number=19, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_OPERATION_IF_SERVING_STATUS_HAS_ENDED', index=19, number=20, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BUDGET_CANNOT_BE_SHARED', index=20, number=21, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CAMPAIGN_CANNOT_USE_SHARED_BUDGET', index=21, number=22, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_CHANGE_BUDGET_ON_CAMPAIGN_WITH_TRIALS', index=22, number=23, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CAMPAIGN_LABEL_DOES_NOT_EXIST', index=23, number=24, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CAMPAIGN_LABEL_ALREADY_EXISTS', index=24, number=25, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_SHOPPING_SETTING', index=25, number=26, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_SHOPPING_SALES_COUNTRY', index=26, number=27, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_UNIVERSAL_APP_CAMPAIGN_SETTING', index=27, number=30, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ADVERTISING_CHANNEL_TYPE_NOT_AVAILABLE_FOR_ACCOUNT_TYPE', index=28, number=31, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_ADVERTISING_CHANNEL_SUB_TYPE', index=29, number=32, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AT_LEAST_ONE_CONVERSION_MUST_BE_SELECTED', index=30, number=33, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_SET_AD_ROTATION_MODE', index=31, number=34, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_MODIFY_START_DATE_IF_ALREADY_STARTED', index=32, number=35, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_SET_DATE_TO_PAST', index=33, number=36, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_HOTEL_CUSTOMER_LINK', index=34, number=37, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_HOTEL_CUSTOMER_LINK', index=35, number=38, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_HOTEL_SETTING', index=36, number=39, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_USE_SHARED_CAMPAIGN_BUDGET_WHILE_PART_OF_CAMPAIGN_GROUP', index=37, number=40, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=146, + serialized_end=1682, +) +_sym_db.RegisterEnumDescriptor(_CAMPAIGNERRORENUM_CAMPAIGNERROR) + + +_CAMPAIGNERRORENUM = _descriptor.Descriptor( + name='CampaignErrorEnum', + full_name='google.ads.googleads.v1.errors.CampaignErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _CAMPAIGNERRORENUM_CAMPAIGNERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=124, + serialized_end=1682, +) + +_CAMPAIGNERRORENUM_CAMPAIGNERROR.containing_type = _CAMPAIGNERRORENUM +DESCRIPTOR.message_types_by_name['CampaignErrorEnum'] = _CAMPAIGNERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +CampaignErrorEnum = _reflection.GeneratedProtocolMessageType('CampaignErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _CAMPAIGNERRORENUM, + __module__ = 'google.ads.googleads_v1.proto.errors.campaign_error_pb2' + , + __doc__ = """Container for enum describing possible campaign errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.CampaignErrorEnum) + )) +_sym_db.RegisterMessage(CampaignErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/campaign_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/campaign_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/campaign_error_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/errors/campaign_feed_error_pb2.py b/google/ads/google_ads/v1/proto/errors/campaign_feed_error_pb2.py new file mode 100644 index 000000000..848528577 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/campaign_feed_error_pb2.py @@ -0,0 +1,116 @@ +# 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_feed_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/campaign_feed_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/campaign_feed_error_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/errors/campaign_shared_set_error_pb2.py b/google/ads/google_ads/v1/proto/errors/campaign_shared_set_error_pb2.py new file mode 100644 index 000000000..8e61535b3 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/campaign_shared_set_error_pb2.py @@ -0,0 +1,96 @@ +# 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/campaign_shared_set_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/campaign_shared_set_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/campaign_shared_set_error_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/errors/change_status_error_pb2.py b/google/ads/google_ads/v1/proto/errors/change_status_error_pb2.py new file mode 100644 index 000000000..f7637523a --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/change_status_error_pb2.py @@ -0,0 +1,96 @@ +# 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/change_status_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/change_status_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/change_status_error_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/errors/collection_size_error_pb2.py b/google/ads/google_ads/v1/proto/errors/collection_size_error_pb2.py new file mode 100644 index 000000000..7aad57e4b --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/collection_size_error_pb2.py @@ -0,0 +1,100 @@ +# 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/collection_size_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/collection_size_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/collection_size_error_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/errors/context_error_pb2.py b/google/ads/google_ads/v1/proto/errors/context_error_pb2.py new file mode 100644 index 000000000..bfd051648 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/context_error_pb2.py @@ -0,0 +1,100 @@ +# 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/context_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/context_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/context_error_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/errors/conversion_action_error_pb2.py b/google/ads/google_ads/v1/proto/errors/conversion_action_error_pb2.py new file mode 100644 index 000000000..175942f41 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/conversion_action_error_pb2.py @@ -0,0 +1,124 @@ +# 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_action_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/conversion_action_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/conversion_action_error_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/errors/conversion_upload_error_pb2.py b/google/ads/google_ads/v1/proto/errors/conversion_upload_error_pb2.py new file mode 100644 index 000000000..9364e6c91 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/conversion_upload_error_pb2.py @@ -0,0 +1,152 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/errors/conversion_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_upload_error.proto', + package='google.ads.googleads.v1.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\"\xa3\x05\n\x19\x43onversionUploadErrorEnum\"\x85\x05\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\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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_CONVERSIONUPLOADERRORENUM_CONVERSIONUPLOADERROR = _descriptor.EnumDescriptor( + name='ConversionUploadError', + full_name='google.ads.googleads.v1.errors.ConversionUploadErrorEnum.ConversionUploadError', + 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_MANY_CONVERSIONS_IN_REQUEST', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNPARSEABLE_GCLID', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CONVERSION_PRECEDES_GCLID', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='EXPIRED_GCLID', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TOO_RECENT_GCLID', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='GCLID_NOT_FOUND', index=7, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNAUTHORIZED_CUSTOMER', index=8, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_CONVERSION_ACTION', index=9, number=9, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TOO_RECENT_CONVERSION_ACTION', index=10, number=10, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CONVERSION_TRACKING_NOT_ENABLED_AT_IMPRESSION_TIME', index=11, number=11, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='EXTERNAL_ATTRIBUTION_DATA_SET_FOR_NON_EXTERNALLY_ATTRIBUTED_CONVERSION_ACTION', index=12, number=12, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='EXTERNAL_ATTRIBUTION_DATA_NOT_SET_FOR_EXTERNALLY_ATTRIBUTED_CONVERSION_ACTION', index=13, number=13, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ORDER_ID_NOT_PERMITTED_FOR_EXTERNALLY_ATTRIBUTED_CONVERSION_ACTION', index=14, number=14, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ORDER_ID_ALREADY_IN_USE', index=15, number=15, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DUPLICATE_ORDER_ID', index=16, number=16, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=163, + serialized_end=808, +) +_sym_db.RegisterEnumDescriptor(_CONVERSIONUPLOADERRORENUM_CONVERSIONUPLOADERROR) + + +_CONVERSIONUPLOADERRORENUM = _descriptor.Descriptor( + name='ConversionUploadErrorEnum', + full_name='google.ads.googleads.v1.errors.ConversionUploadErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _CONVERSIONUPLOADERRORENUM_CONVERSIONUPLOADERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=133, + serialized_end=808, +) + +_CONVERSIONUPLOADERRORENUM_CONVERSIONUPLOADERROR.containing_type = _CONVERSIONUPLOADERRORENUM +DESCRIPTOR.message_types_by_name['ConversionUploadErrorEnum'] = _CONVERSIONUPLOADERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ConversionUploadErrorEnum = _reflection.GeneratedProtocolMessageType('ConversionUploadErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _CONVERSIONUPLOADERRORENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(ConversionUploadErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/conversion_upload_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/conversion_upload_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/conversion_upload_error_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/errors/country_code_error_pb2.py b/google/ads/google_ads/v1/proto/errors/country_code_error_pb2.py new file mode 100644 index 000000000..3f511900a --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/country_code_error_pb2.py @@ -0,0 +1,96 @@ +# 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/country_code_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/country_code_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/country_code_error_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/errors/criterion_error_pb2.py b/google/ads/google_ads/v1/proto/errors/criterion_error_pb2.py new file mode 100644 index 000000000..b8a75c604 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/criterion_error_pb2.py @@ -0,0 +1,468 @@ +# 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\"\xca\x1c\n\x12\x43riterionErrorEnum\"\xb3\x1c\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\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\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_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='PRODUCT_SCOPE_TOO_LONG', index=70, number=70, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PRODUCT_SCOPE_TOO_MANY_DIMENSIONS', index=71, number=71, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PRODUCT_PARTITION_TOO_LONG', index=72, number=72, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PRODUCT_PARTITION_TOO_MANY_DIMENSIONS', index=73, number=73, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_PRODUCT_DIMENSION', index=74, number=74, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_PRODUCT_DIMENSION_TYPE', index=75, number=75, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_PRODUCT_BIDDING_CATEGORY', index=76, number=76, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_SHOPPING_SETTING', index=77, number=77, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_MATCHING_FUNCTION', index=78, number=78, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LOCATION_FILTER_NOT_ALLOWED', index=79, number=79, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LOCATION_FILTER_INVALID', index=80, number=80, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_ATTACH_CRITERIA_AT_CAMPAIGN_AND_ADGROUP', index=81, number=81, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='HOTEL_LENGTH_OF_STAY_OVERLAPS_WITH_EXISTING_CRITERION', index=82, number=82, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='HOTEL_ADVANCE_BOOKING_WINDOW_OVERLAPS_WITH_EXISTING_CRITERION', index=83, number=83, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FIELD_INCOMPATIBLE_WITH_NEGATIVE_TARGETING', index=84, number=84, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_WEBPAGE_CONDITION', index=85, number=85, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_WEBPAGE_CONDITION_URL', index=86, number=86, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='WEBPAGE_CONDITION_URL_CANNOT_BE_EMPTY', index=87, number=87, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='WEBPAGE_CONDITION_URL_UNSUPPORTED_PROTOCOL', index=88, number=88, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='WEBPAGE_CONDITION_URL_CANNOT_BE_IP_ADDRESS', index=89, number=89, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='WEBPAGE_CONDITION_URL_DOMAIN_NOT_CONSISTENT_WITH_CAMPAIGN_SETTING', index=90, number=90, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='WEBPAGE_CONDITION_URL_CANNOT_BE_PUBLIC_SUFFIX', index=91, number=91, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='WEBPAGE_CONDITION_URL_INVALID_PUBLIC_SUFFIX', index=92, number=92, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='WEBPAGE_CONDITION_URL_VALUE_TRACK_VALUE_NOT_SUPPORTED', index=93, number=93, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='WEBPAGE_CRITERION_URL_EQUALS_CAN_HAVE_ONLY_ONE_CONDITION', index=94, number=94, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='WEBPAGE_CRITERION_NOT_SUPPORTED_ON_NON_DSA_AD_GROUP', index=95, number=95, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=148, + serialized_end=3783, +) +_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=3783, +) + +_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/criterion_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/criterion_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/criterion_error_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/errors/custom_interest_error_pb2.py b/google/ads/google_ads/v1/proto/errors/custom_interest_error_pb2.py new file mode 100644 index 000000000..060b61d97 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/custom_interest_error_pb2.py @@ -0,0 +1,120 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/errors/custom_interest_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/custom_interest_error.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_CUSTOMINTERESTERRORENUM_CUSTOMINTERESTERROR = _descriptor.EnumDescriptor( + name='CustomInterestError', + full_name='google.ads.googleads.v1.errors.CustomInterestErrorEnum.CustomInterestError', + 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='NAME_ALREADY_USED', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CUSTOM_INTEREST_MEMBER_ID_AND_TYPE_PARAMETER_NOT_PRESENT_IN_REMOVE', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TYPE_AND_PARAMETER_NOT_FOUND', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TYPE_AND_PARAMETER_ALREADY_EXISTED', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_CUSTOM_INTEREST_MEMBER_TYPE', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_REMOVE_WHILE_IN_USE', index=7, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_CHANGE_TYPE', index=8, number=8, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=159, + serialized_end=476, +) +_sym_db.RegisterEnumDescriptor(_CUSTOMINTERESTERRORENUM_CUSTOMINTERESTERROR) + + +_CUSTOMINTERESTERRORENUM = _descriptor.Descriptor( + name='CustomInterestErrorEnum', + full_name='google.ads.googleads.v1.errors.CustomInterestErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _CUSTOMINTERESTERRORENUM_CUSTOMINTERESTERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=131, + serialized_end=476, +) + +_CUSTOMINTERESTERRORENUM_CUSTOMINTERESTERROR.containing_type = _CUSTOMINTERESTERRORENUM +DESCRIPTOR.message_types_by_name['CustomInterestErrorEnum'] = _CUSTOMINTERESTERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +CustomInterestErrorEnum = _reflection.GeneratedProtocolMessageType('CustomInterestErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _CUSTOMINTERESTERRORENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(CustomInterestErrorEnum) + + +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/v1/proto/errors/custom_interest_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/custom_interest_error_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/errors/customer_client_link_error_pb2.py b/google/ads/google_ads/v1/proto/errors/customer_client_link_error_pb2.py new file mode 100644 index 000000000..2acfd271a --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/customer_client_link_error_pb2.py @@ -0,0 +1,120 @@ +# 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_client_link_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/customer_client_link_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/customer_client_link_error_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/errors/customer_error_pb2.py b/google/ads/google_ads/v1/proto/errors/customer_error_pb2.py new file mode 100644 index 000000000..0b21985b5 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/customer_error_pb2.py @@ -0,0 +1,100 @@ +# 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_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/customer_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/customer_error_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/errors/customer_feed_error_pb2.py b/google/ads/google_ads/v1/proto/errors/customer_feed_error_pb2.py new file mode 100644 index 000000000..c33b98819 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/customer_feed_error_pb2.py @@ -0,0 +1,120 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/errors/customer_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/customer_feed_error.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_CUSTOMERFEEDERRORENUM_CUSTOMERFEEDERROR = _descriptor.EnumDescriptor( + name='CustomerFeedError', + full_name='google.ads.googleads.v1.errors.CustomerFeedErrorEnum.CustomerFeedError', + 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=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_CREATE_ALREADY_EXISTING_CUSTOMER_FEED', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_MODIFY_REMOVED_CUSTOMER_FEED', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_PLACEHOLDER_TYPE', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE', index=7, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PLACEHOLDER_TYPE_NOT_ALLOWED_ON_CUSTOMER_FEED', index=8, number=8, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=155, + serialized_end=504, +) +_sym_db.RegisterEnumDescriptor(_CUSTOMERFEEDERRORENUM_CUSTOMERFEEDERROR) + + +_CUSTOMERFEEDERRORENUM = _descriptor.Descriptor( + name='CustomerFeedErrorEnum', + full_name='google.ads.googleads.v1.errors.CustomerFeedErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _CUSTOMERFEEDERRORENUM_CUSTOMERFEEDERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=129, + serialized_end=504, +) + +_CUSTOMERFEEDERRORENUM_CUSTOMERFEEDERROR.containing_type = _CUSTOMERFEEDERRORENUM +DESCRIPTOR.message_types_by_name['CustomerFeedErrorEnum'] = _CUSTOMERFEEDERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +CustomerFeedErrorEnum = _reflection.GeneratedProtocolMessageType('CustomerFeedErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _CUSTOMERFEEDERRORENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(CustomerFeedErrorEnum) + + +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/v1/proto/errors/customer_feed_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/customer_feed_error_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/errors/customer_manager_link_error_pb2.py b/google/ads/google_ads/v1/proto/errors/customer_manager_link_error_pb2.py new file mode 100644 index 000000000..1b5c17e0b --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/customer_manager_link_error_pb2.py @@ -0,0 +1,124 @@ +# 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/customer_manager_link_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/customer_manager_link_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/customer_manager_link_error_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/errors/database_error_pb2.py b/google/ads/google_ads/v1/proto/errors/database_error_pb2.py new file mode 100644 index 000000000..26ad3f2be --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/database_error_pb2.py @@ -0,0 +1,96 @@ +# 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/database_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/database_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/database_error_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/errors/date_error_pb2.py b/google/ads/google_ads/v1/proto/errors/date_error_pb2.py new file mode 100644 index 000000000..1929d40ed --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/date_error_pb2.py @@ -0,0 +1,132 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/errors/date_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/date_error.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_DATEERRORENUM_DATEERROR = _descriptor.EnumDescriptor( + name='DateError', + full_name='google.ads.googleads.v1.errors.DateErrorEnum.DateError', + 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_FIELD_VALUES_IN_DATE', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_FIELD_VALUES_IN_DATE_TIME', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_STRING_DATE', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_STRING_DATE_TIME_MICROS', index=5, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_STRING_DATE_TIME_SECONDS', index=6, number=11, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_STRING_DATE_TIME_SECONDS_WITH_OFFSET', index=7, number=12, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='EARLIER_THAN_MINIMUM_DATE', index=8, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LATER_THAN_MAXIMUM_DATE', index=9, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DATE_RANGE_MINIMUM_DATE_LATER_THAN_MAXIMUM_DATE', index=10, number=9, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DATE_RANGE_MINIMUM_AND_MAXIMUM_DATES_BOTH_NULL', index=11, number=10, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=138, + serialized_end=567, +) +_sym_db.RegisterEnumDescriptor(_DATEERRORENUM_DATEERROR) + + +_DATEERRORENUM = _descriptor.Descriptor( + name='DateErrorEnum', + full_name='google.ads.googleads.v1.errors.DateErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _DATEERRORENUM_DATEERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=120, + serialized_end=567, +) + +_DATEERRORENUM_DATEERROR.containing_type = _DATEERRORENUM +DESCRIPTOR.message_types_by_name['DateErrorEnum'] = _DATEERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +DateErrorEnum = _reflection.GeneratedProtocolMessageType('DateErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _DATEERRORENUM, + __module__ = 'google.ads.googleads_v1.proto.errors.date_error_pb2' + , + __doc__ = """Container for enum describing possible date errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.DateErrorEnum) + )) +_sym_db.RegisterMessage(DateErrorEnum) + + +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/v1/proto/errors/date_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/date_error_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/errors/date_range_error_pb2.py b/google/ads/google_ads/v1/proto/errors/date_range_error_pb2.py new file mode 100644 index 000000000..c285637c3 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/date_range_error_pb2.py @@ -0,0 +1,112 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/errors/date_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/date_range_error.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_DATERANGEERRORENUM_DATERANGEERROR = _descriptor.EnumDescriptor( + name='DateRangeError', + full_name='google.ads.googleads.v1.errors.DateRangeErrorEnum.DateRangeError', + 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_DATE', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='START_DATE_AFTER_END_DATE', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_SET_DATE_TO_PAST', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AFTER_MAXIMUM_ALLOWABLE_DATE', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_MODIFY_START_DATE_IF_ALREADY_STARTED', index=6, number=6, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=149, + serialized_end=356, +) +_sym_db.RegisterEnumDescriptor(_DATERANGEERRORENUM_DATERANGEERROR) + + +_DATERANGEERRORENUM = _descriptor.Descriptor( + name='DateRangeErrorEnum', + full_name='google.ads.googleads.v1.errors.DateRangeErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _DATERANGEERRORENUM_DATERANGEERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=126, + serialized_end=356, +) + +_DATERANGEERRORENUM_DATERANGEERROR.containing_type = _DATERANGEERRORENUM +DESCRIPTOR.message_types_by_name['DateRangeErrorEnum'] = _DATERANGEERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +DateRangeErrorEnum = _reflection.GeneratedProtocolMessageType('DateRangeErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _DATERANGEERRORENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(DateRangeErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/date_range_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/date_range_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/date_range_error_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/errors/distinct_error_pb2.py b/google/ads/google_ads/v1/proto/errors/distinct_error_pb2.py new file mode 100644 index 000000000..acfe4ee81 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/distinct_error_pb2.py @@ -0,0 +1,100 @@ +# 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/distinct_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/distinct_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/distinct_error_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/errors/enum_error_pb2.py b/google/ads/google_ads/v1/proto/errors/enum_error_pb2.py new file mode 100644 index 000000000..c066a917d --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/enum_error_pb2.py @@ -0,0 +1,96 @@ +# 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/enum_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/enum_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/enum_error_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/errors/errors_pb2.py b/google/ads/google_ads/v1/proto/errors/errors_pb2.py new file mode 100644 index 000000000..5437fdada --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/errors_pb2.py @@ -0,0 +1,1823 @@ +# 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 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_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_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_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 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 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 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 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.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?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\x39google/ads/googleads_v1/proto/errors/campaign_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\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/media_bundle_error.proto\x1a;google/ads/googleads_v1/proto/errors/media_file_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\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\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\"\xc1K\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\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]\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\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\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\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\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\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_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__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__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_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_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_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_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_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=6185, + serialized_end=6267, +) + + +_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=6270, + serialized_end=6550, +) + + +_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='bidding_error', full_name='google.ads.googleads.v1.errors.ErrorCode.bidding_error', index=20, + 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=21, + 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=22, + 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=23, + 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=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), + _descriptor.FieldDescriptor( + name='customer_error', full_name='google.ads.googleads.v1.errors.ErrorCode.customer_error', index=25, + 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=26, + 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=27, + 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=28, + 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=29, + 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=30, + 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=31, + 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=32, + 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=33, + 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=34, + 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=35, + 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_file_error', full_name='google.ads.googleads.v1.errors.ErrorCode.media_file_error', index=36, + 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=37, + 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=38, + 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=39, + 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=40, + 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=41, + 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=42, + 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=43, + 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=44, + 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=45, + 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=46, + 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=47, + 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=48, + 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=49, + 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=50, + 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='ad_group_bid_modifier_error', full_name='google.ads.googleads.v1.errors.ErrorCode.ad_group_bid_modifier_error', index=51, + 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=52, + 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=53, + 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=54, + 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=55, + 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=56, + 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=57, + 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_upload_error', full_name='google.ads.googleads.v1.errors.ErrorCode.conversion_upload_error', index=58, + 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=59, + 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=60, + 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=61, + 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=62, + 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=63, + 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=64, + 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=65, + 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=66, + 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=67, + 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=68, + 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=69, + 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=70, + 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=71, + 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=72, + 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=73, + 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='feed_item_error', full_name='google.ads.googleads.v1.errors.ErrorCode.feed_item_error', index=74, + 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=75, + 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=76, + 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=77, + 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=78, + 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=79, + 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=80, + 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=81, + 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=82, + 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=83, + 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='extension_feed_item_error', full_name='google.ads.googleads.v1.errors.ErrorCode.extension_feed_item_error', index=84, + 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=85, + 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=86, + 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=87, + 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=88, + 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=89, + 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=90, + 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=91, + 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=92, + 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), + ], + 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=6553, + serialized_end=16218, +) + + +_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=16331, + serialized_end=16413, +) + +_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=16221, + serialized_end=16413, +) + + +_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=16416, + serialized_end=16638, +) + + +_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=16641, + serialized_end=16820, +) + + +_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=16822, + serialized_end=16924, +) + +_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['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_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['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_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['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['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.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['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_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['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_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['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['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'] +_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 + 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_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 + 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_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. + 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 + 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 + """, + # @@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/errors_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/errors_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/errors_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/errors/extension_feed_item_error_pb2.py b/google/ads/google_ads/v1/proto/errors/extension_feed_item_error_pb2.py new file mode 100644 index 000000000..6bc03ed7f --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/extension_feed_item_error_pb2.py @@ -0,0 +1,264 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/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')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf 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/extension_feed_item_error.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_EXTENSIONFEEDITEMERRORENUM_EXTENSIONFEEDITEMERROR = _descriptor.EnumDescriptor( + name='ExtensionFeedItemError', + full_name='google.ads.googleads.v1.errors.ExtensionFeedItemErrorEnum.ExtensionFeedItemError', + 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='VALUE_OUT_OF_RANGE', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='URL_LIST_TOO_LONG', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_HAVE_RESTRICTION_ON_EMPTY_GEO_TARGETING', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_SET_WITH_FINAL_URLS', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_SET_WITHOUT_FINAL_URLS', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_PHONE_NUMBER', index=7, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY', index=8, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED', index=9, number=9, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PREMIUM_RATE_NUMBER_NOT_ALLOWED', index=10, number=10, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DISALLOWED_NUMBER_TYPE', index=11, number=11, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_DOMESTIC_PHONE_NUMBER_FORMAT', index=12, number=12, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='VANITY_PHONE_NUMBER_NOT_ALLOWED', index=13, number=13, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_CALL_CONVERSION_ACTION', index=14, number=14, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CUSTOMER_NOT_WHITELISTED_FOR_CALLTRACKING', index=15, number=15, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY', index=16, number=16, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED', index=17, number=17, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_APP_ID', index=18, number=18, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='QUOTES_IN_REVIEW_EXTENSION_SNIPPET', index=19, number=19, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='HYPHENS_IN_REVIEW_EXTENSION_SNIPPET', index=20, number=20, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='REVIEW_EXTENSION_SOURCE_INELIGIBLE', index=21, number=21, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SOURCE_NAME_IN_REVIEW_EXTENSION_TEXT', index=22, number=22, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INCONSISTENT_CURRENCY_CODES', index=23, number=23, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PRICE_EXTENSION_HAS_DUPLICATED_HEADERS', index=24, number=24, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PRICE_ITEM_HAS_DUPLICATED_HEADER_AND_DESCRIPTION', index=25, number=25, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PRICE_EXTENSION_HAS_TOO_FEW_ITEMS', index=26, number=26, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PRICE_EXTENSION_HAS_TOO_MANY_ITEMS', index=27, number=27, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNSUPPORTED_VALUE', index=28, number=28, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNSUPPORTED_VALUE_IN_SELECTED_LANGUAGE', index=29, number=29, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_DEVICE_PREFERENCE', index=30, number=30, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_SCHEDULE_END', index=31, number=31, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DATE_TIME_MUST_BE_IN_ACCOUNT_TIME_ZONE', index=32, number=32, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_SNIPPETS_HEADER', index=33, number=33, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_OPERATE_ON_REMOVED_FEED_ITEM', index=34, number=34, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PHONE_NUMBER_NOT_SUPPORTED_WITH_CALLTRACKING_FOR_COUNTRY', index=35, number=35, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CONFLICTING_CALL_CONVERSION_SETTINGS', index=36, number=36, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='EXTENSION_TYPE_MISMATCH', index=37, number=37, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='EXTENSION_SUBTYPE_REQUIRED', index=38, number=38, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='EXTENSION_TYPE_UNSUPPORTED', index=39, number=39, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_OPERATE_ON_FEED_WITH_MULTIPLE_MAPPINGS', index=40, number=40, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_OPERATE_ON_FEED_WITH_KEY_ATTRIBUTES', index=41, number=41, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_PRICE_FORMAT', index=42, number=42, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PROMOTION_INVALID_TIME', index=43, number=43, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TOO_MANY_DECIMAL_PLACES_SPECIFIED', index=44, number=44, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=166, + serialized_end=1844, +) +_sym_db.RegisterEnumDescriptor(_EXTENSIONFEEDITEMERRORENUM_EXTENSIONFEEDITEMERROR) + + +_EXTENSIONFEEDITEMERRORENUM = _descriptor.Descriptor( + name='ExtensionFeedItemErrorEnum', + full_name='google.ads.googleads.v1.errors.ExtensionFeedItemErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _EXTENSIONFEEDITEMERRORENUM_EXTENSIONFEEDITEMERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=135, + serialized_end=1844, +) + +_EXTENSIONFEEDITEMERRORENUM_EXTENSIONFEEDITEMERROR.containing_type = _EXTENSIONFEEDITEMERRORENUM +DESCRIPTOR.message_types_by_name['ExtensionFeedItemErrorEnum'] = _EXTENSIONFEEDITEMERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ExtensionFeedItemErrorEnum = _reflection.GeneratedProtocolMessageType('ExtensionFeedItemErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _EXTENSIONFEEDITEMERRORENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(ExtensionFeedItemErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/extension_feed_item_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/extension_feed_item_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/extension_feed_item_error_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/errors/extension_setting_error_pb2.py b/google/ads/google_ads/v1/proto/errors/extension_setting_error_pb2.py new file mode 100644 index 000000000..88cd07fad --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/extension_setting_error_pb2.py @@ -0,0 +1,348 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/errors/extension_setting_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/extension_setting_error.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_EXTENSIONSETTINGERRORENUM_EXTENSIONSETTINGERROR = _descriptor.EnumDescriptor( + name='ExtensionSettingError', + full_name='google.ads.googleads.v1.errors.ExtensionSettingErrorEnum.ExtensionSettingError', + 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='EXTENSIONS_REQUIRED', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FEED_TYPE_EXTENSION_TYPE_MISMATCH', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_FEED_TYPE', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_FEED_TYPE_FOR_CUSTOMER_EXTENSION_SETTING', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_CHANGE_FEED_ITEM_ON_CREATE', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_UPDATE_NEWLY_CREATED_EXTENSION', index=7, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NO_EXISTING_AD_GROUP_EXTENSION_SETTING_FOR_TYPE', index=8, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NO_EXISTING_CAMPAIGN_EXTENSION_SETTING_FOR_TYPE', index=9, number=9, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NO_EXISTING_CUSTOMER_EXTENSION_SETTING_FOR_TYPE', index=10, number=10, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AD_GROUP_EXTENSION_SETTING_ALREADY_EXISTS', index=11, number=11, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CAMPAIGN_EXTENSION_SETTING_ALREADY_EXISTS', index=12, number=12, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CUSTOMER_EXTENSION_SETTING_ALREADY_EXISTS', index=13, number=13, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AD_GROUP_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE', index=14, number=14, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CAMPAIGN_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE', index=15, number=15, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CUSTOMER_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE', index=16, number=16, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='VALUE_OUT_OF_RANGE', index=17, number=17, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_SET_FIELD_WITH_FINAL_URLS', index=18, number=18, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FINAL_URLS_NOT_SET', index=19, number=19, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_PHONE_NUMBER', index=20, number=20, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY', index=21, number=21, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED', index=22, number=22, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PREMIUM_RATE_NUMBER_NOT_ALLOWED', index=23, number=23, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DISALLOWED_NUMBER_TYPE', index=24, number=24, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_DOMESTIC_PHONE_NUMBER_FORMAT', index=25, number=25, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='VANITY_PHONE_NUMBER_NOT_ALLOWED', index=26, number=26, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_COUNTRY_CODE', index=27, number=27, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_CALL_CONVERSION_TYPE_ID', index=28, number=28, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CUSTOMER_NOT_WHITELISTED_FOR_CALLTRACKING', index=29, number=29, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY', index=30, number=30, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_APP_ID', index=31, number=31, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='QUOTES_IN_REVIEW_EXTENSION_SNIPPET', index=32, number=32, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='HYPHENS_IN_REVIEW_EXTENSION_SNIPPET', index=33, number=33, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='REVIEW_EXTENSION_SOURCE_NOT_ELIGIBLE', index=34, number=34, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SOURCE_NAME_IN_REVIEW_EXTENSION_TEXT', index=35, number=35, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_FIELD', index=36, number=36, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INCONSISTENT_CURRENCY_CODES', index=37, number=37, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PRICE_EXTENSION_HAS_DUPLICATED_HEADERS', index=38, number=38, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PRICE_ITEM_HAS_DUPLICATED_HEADER_AND_DESCRIPTION', index=39, number=39, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PRICE_EXTENSION_HAS_TOO_FEW_ITEMS', index=40, number=40, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PRICE_EXTENSION_HAS_TOO_MANY_ITEMS', index=41, number=41, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNSUPPORTED_VALUE', index=42, number=42, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_DEVICE_PREFERENCE', index=43, number=43, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_SCHEDULE_END', index=44, number=45, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DATE_TIME_MUST_BE_IN_ACCOUNT_TIME_ZONE', index=45, number=47, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='OVERLAPPING_SCHEDULES_NOT_ALLOWED', index=46, number=48, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SCHEDULE_END_NOT_AFTER_START', index=47, number=49, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TOO_MANY_SCHEDULES_PER_DAY', index=48, number=50, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DUPLICATE_EXTENSION_FEED_ITEM_EDIT', index=49, number=51, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_SNIPPETS_HEADER', index=50, number=52, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PHONE_NUMBER_NOT_SUPPORTED_WITH_CALLTRACKING_FOR_COUNTRY', index=51, number=53, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CAMPAIGN_TARGETING_MISMATCH', index=52, number=54, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_OPERATE_ON_REMOVED_FEED', index=53, number=55, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='EXTENSION_TYPE_REQUIRED', index=54, number=56, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INCOMPATIBLE_UNDERLYING_MATCHING_FUNCTION', index=55, number=57, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='START_DATE_AFTER_END_DATE', index=56, number=58, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_PRICE_FORMAT', index=57, number=59, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PROMOTION_INVALID_TIME', index=58, number=60, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PROMOTION_CANNOT_SET_PERCENT_DISCOUNT_AND_MONEY_DISCOUNT', index=59, number=61, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PROMOTION_CANNOT_SET_PROMOTION_CODE_AND_ORDERS_OVER_AMOUNT', index=60, number=62, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TOO_MANY_DECIMAL_PLACES_SPECIFIED', index=61, number=63, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_LANGUAGE_CODE', index=62, number=64, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNSUPPORTED_LANGUAGE', index=63, number=65, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED', index=64, number=66, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='EXTENSION_SETTING_UPDATE_IS_A_NOOP', index=65, number=67, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=163, + serialized_end=2717, +) +_sym_db.RegisterEnumDescriptor(_EXTENSIONSETTINGERRORENUM_EXTENSIONSETTINGERROR) + + +_EXTENSIONSETTINGERRORENUM = _descriptor.Descriptor( + name='ExtensionSettingErrorEnum', + full_name='google.ads.googleads.v1.errors.ExtensionSettingErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _EXTENSIONSETTINGERRORENUM_EXTENSIONSETTINGERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=133, + serialized_end=2717, +) + +_EXTENSIONSETTINGERRORENUM_EXTENSIONSETTINGERROR.containing_type = _EXTENSIONSETTINGERRORENUM +DESCRIPTOR.message_types_by_name['ExtensionSettingErrorEnum'] = _EXTENSIONSETTINGERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ExtensionSettingErrorEnum = _reflection.GeneratedProtocolMessageType('ExtensionSettingErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _EXTENSIONSETTINGERRORENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(ExtensionSettingErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/extension_setting_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/extension_setting_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/extension_setting_error_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/errors/feed_attribute_reference_error_pb2.py b/google/ads/google_ads/v1/proto/errors/feed_attribute_reference_error_pb2.py new file mode 100644 index 000000000..dbcbd636c --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/feed_attribute_reference_error_pb2.py @@ -0,0 +1,104 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/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')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf 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_attribute_reference_error.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_FEEDATTRIBUTEREFERENCEERRORENUM_FEEDATTRIBUTEREFERENCEERROR = _descriptor.EnumDescriptor( + name='FeedAttributeReferenceError', + full_name='google.ads.googleads.v1.errors.FeedAttributeReferenceErrorEnum.FeedAttributeReferenceError', + 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_REFERENCE_REMOVED_FEED', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_FEED_NAME', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_FEED_ATTRIBUTE_NAME', index=4, number=4, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=176, + serialized_end=326, +) +_sym_db.RegisterEnumDescriptor(_FEEDATTRIBUTEREFERENCEERRORENUM_FEEDATTRIBUTEREFERENCEERROR) + + +_FEEDATTRIBUTEREFERENCEERRORENUM = _descriptor.Descriptor( + name='FeedAttributeReferenceErrorEnum', + full_name='google.ads.googleads.v1.errors.FeedAttributeReferenceErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _FEEDATTRIBUTEREFERENCEERRORENUM_FEEDATTRIBUTEREFERENCEERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=140, + serialized_end=326, +) + +_FEEDATTRIBUTEREFERENCEERRORENUM_FEEDATTRIBUTEREFERENCEERROR.containing_type = _FEEDATTRIBUTEREFERENCEERRORENUM +DESCRIPTOR.message_types_by_name['FeedAttributeReferenceErrorEnum'] = _FEEDATTRIBUTEREFERENCEERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +FeedAttributeReferenceErrorEnum = _reflection.GeneratedProtocolMessageType('FeedAttributeReferenceErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _FEEDATTRIBUTEREFERENCEERRORENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(FeedAttributeReferenceErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/feed_attribute_reference_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/feed_attribute_reference_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/feed_attribute_reference_error_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/errors/feed_error_pb2.py b/google/ads/google_ads/v1/proto/errors/feed_error_pb2.py new file mode 100644 index 000000000..2b0b3ab21 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/feed_error_pb2.py @@ -0,0 +1,168 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/errors/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/feed_error.proto', + package='google.ads.googleads.v1.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\"\xde\x05\n\rFeedErrorEnum\"\xcc\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\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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_FEEDERRORENUM_FEEDERROR = _descriptor.EnumDescriptor( + name='FeedError', + full_name='google.ads.googleads.v1.errors.FeedErrorEnum.FeedError', + 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='ATTRIBUTE_NAMES_NOT_UNIQUE', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ATTRIBUTES_DO_NOT_MATCH_EXISTING_ATTRIBUTES', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_SPECIFY_USER_ORIGIN_FOR_SYSTEM_FEED', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_SPECIFY_GOOGLE_ORIGIN_FOR_NON_SYSTEM_FEED', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_SPECIFY_FEED_ATTRIBUTES_FOR_SYSTEM_FEED', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_UPDATE_FEED_ATTRIBUTES_WITH_ORIGIN_GOOGLE', index=7, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FEED_REMOVED', index=8, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_ORIGIN_VALUE', index=9, number=9, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FEED_ORIGIN_IS_NOT_USER', index=10, number=10, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_AUTH_TOKEN_FOR_EMAIL', index=11, number=11, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_EMAIL', index=12, number=12, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DUPLICATE_FEED_NAME', index=13, number=13, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_FEED_NAME', index=14, number=14, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_OAUTH_INFO', index=15, number=15, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NEW_ATTRIBUTE_CANNOT_BE_PART_OF_UNIQUE_KEY', index=16, number=16, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TOO_MANY_ATTRIBUTES', index=17, number=17, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_BUSINESS_ACCOUNT', index=18, number=18, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BUSINESS_ACCOUNT_CANNOT_ACCESS_LOCATION_ACCOUNT', index=19, number=19, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_AFFILIATE_CHAIN_ID', index=20, number=20, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=138, + serialized_end=854, +) +_sym_db.RegisterEnumDescriptor(_FEEDERRORENUM_FEEDERROR) + + +_FEEDERRORENUM = _descriptor.Descriptor( + name='FeedErrorEnum', + full_name='google.ads.googleads.v1.errors.FeedErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _FEEDERRORENUM_FEEDERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=120, + serialized_end=854, +) + +_FEEDERRORENUM_FEEDERROR.containing_type = _FEEDERRORENUM +DESCRIPTOR.message_types_by_name['FeedErrorEnum'] = _FEEDERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +FeedErrorEnum = _reflection.GeneratedProtocolMessageType('FeedErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _FEEDERRORENUM, + __module__ = 'google.ads.googleads_v1.proto.errors.feed_error_pb2' + , + __doc__ = """Container for enum describing possible feed errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.FeedErrorEnum) + )) +_sym_db.RegisterMessage(FeedErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/feed_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/feed_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/feed_error_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/errors/feed_item_error_pb2.py b/google/ads/google_ads/v1/proto/errors/feed_item_error_pb2.py new file mode 100644 index 000000000..8d2c1e463 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/feed_item_error_pb2.py @@ -0,0 +1,128 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/errors/feed_item_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_error.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_FEEDITEMERRORENUM_FEEDITEMERROR = _descriptor.EnumDescriptor( + name='FeedItemError', + full_name='google.ads.googleads.v1.errors.FeedItemErrorEnum.FeedItemError', + 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_CONVERT_ATTRIBUTE_VALUE_FROM_STRING', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_OPERATE_ON_REMOVED_FEED_ITEM', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DATE_TIME_MUST_BE_IN_ACCOUNT_TIME_ZONE', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='KEY_ATTRIBUTES_NOT_FOUND', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_URL', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_KEY_ATTRIBUTES', index=7, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='KEY_ATTRIBUTES_NOT_UNIQUE', index=8, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_MODIFY_KEY_ATTRIBUTE_VALUE', index=9, number=9, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SIZE_TOO_LARGE_FOR_MULTI_VALUE_ATTRIBUTE', index=10, number=10, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=147, + serialized_end=516, +) +_sym_db.RegisterEnumDescriptor(_FEEDITEMERRORENUM_FEEDITEMERROR) + + +_FEEDITEMERRORENUM = _descriptor.Descriptor( + name='FeedItemErrorEnum', + full_name='google.ads.googleads.v1.errors.FeedItemErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _FEEDITEMERRORENUM_FEEDITEMERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=125, + serialized_end=516, +) + +_FEEDITEMERRORENUM_FEEDITEMERROR.containing_type = _FEEDITEMERRORENUM +DESCRIPTOR.message_types_by_name['FeedItemErrorEnum'] = _FEEDITEMERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +FeedItemErrorEnum = _reflection.GeneratedProtocolMessageType('FeedItemErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _FEEDITEMERRORENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(FeedItemErrorEnum) + + +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/v1/proto/errors/feed_item_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/feed_item_error_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/errors/feed_item_target_error_pb2.py b/google/ads/google_ads/v1/proto/errors/feed_item_target_error_pb2.py new file mode 100644 index 000000000..638a2288f --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/feed_item_target_error_pb2.py @@ -0,0 +1,116 @@ +# 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/feed_item_target_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/feed_item_target_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/feed_item_target_error_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/errors/feed_item_validation_error_pb2.py b/google/ads/google_ads/v1/proto/errors/feed_item_validation_error_pb2.py new file mode 100644 index 000000000..31eeff6a4 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/feed_item_validation_error_pb2.py @@ -0,0 +1,448 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/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')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf 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_validation_error.proto', + package='google.ads.googleads.v1.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\"\x96\x18\n\x1b\x46\x65\x65\x64ItemValidationErrorEnum\"\xf6\x17\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\x10ZB\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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_FEEDITEMVALIDATIONERRORENUM_FEEDITEMVALIDATIONERROR = _descriptor.EnumDescriptor( + name='FeedItemValidationError', + full_name='google.ads.googleads.v1.errors.FeedItemValidationErrorEnum.FeedItemValidationError', + 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='STRING_TOO_SHORT', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='STRING_TOO_LONG', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='VALUE_NOT_SPECIFIED', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_DOMESTIC_PHONE_NUMBER_FORMAT', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_PHONE_NUMBER', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY', index=7, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PREMIUM_RATE_NUMBER_NOT_ALLOWED', index=8, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DISALLOWED_NUMBER_TYPE', index=9, number=9, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='VALUE_OUT_OF_RANGE', index=10, number=10, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY', index=11, number=11, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CUSTOMER_NOT_WHITELISTED_FOR_CALLTRACKING', 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='INVALID_APP_ID', index=14, number=14, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_ATTRIBUTES_FOR_FIELDS', index=15, number=15, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_TYPE_ID', index=16, number=16, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_EMAIL_ADDRESS', index=17, number=17, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_HTTPS_URL', index=18, number=18, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_DELIVERY_ADDRESS', index=19, number=19, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='START_DATE_AFTER_END_DATE', index=20, number=20, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_FEED_ITEM_START_TIME', index=21, number=21, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_FEED_ITEM_END_TIME', index=22, number=22, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_FEED_ITEM_ID', index=23, number=23, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='VANITY_PHONE_NUMBER_NOT_ALLOWED', index=24, number=24, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_REVIEW_EXTENSION_SNIPPET', index=25, number=25, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_NUMBER_FORMAT', index=26, number=26, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_DATE_FORMAT', index=27, number=27, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_PRICE_FORMAT', index=28, number=28, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNKNOWN_PLACEHOLDER_FIELD', index=29, number=29, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_ENHANCED_SITELINK_DESCRIPTION_LINE', index=30, number=30, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='REVIEW_EXTENSION_SOURCE_INELIGIBLE', index=31, number=31, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='HYPHENS_IN_REVIEW_EXTENSION_SNIPPET', index=32, number=32, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DOUBLE_QUOTES_IN_REVIEW_EXTENSION_SNIPPET', index=33, number=33, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='QUOTES_IN_REVIEW_EXTENSION_SNIPPET', index=34, number=34, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_FORM_ENCODED_PARAMS', index=35, number=35, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_URL_PARAMETER_NAME', index=36, number=36, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NO_GEOCODING_RESULT', index=37, number=37, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SOURCE_NAME_IN_REVIEW_EXTENSION_TEXT', index=38, number=38, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED', index=39, number=39, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_PLACEHOLDER_FIELD_ID', index=40, number=40, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_URL_TAG', index=41, number=41, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LIST_TOO_LONG', index=42, number=42, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_ATTRIBUTES_COMBINATION', index=43, number=43, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DUPLICATE_VALUES', index=44, number=44, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_CALL_CONVERSION_ACTION_ID', index=45, number=45, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_SET_WITHOUT_FINAL_URLS', index=46, number=46, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='APP_ID_DOESNT_EXIST_IN_APP_STORE', index=47, number=47, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_FINAL_URL', index=48, number=48, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_TRACKING_URL', index=49, number=49, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_FINAL_URL_FOR_APP_DOWNLOAD_URL', index=50, number=50, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LIST_TOO_SHORT', index=51, number=51, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_USER_ACTION', index=52, number=52, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_TYPE_NAME', index=53, number=53, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_EVENT_CHANGE_STATUS', index=54, number=54, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_SNIPPETS_HEADER', index=55, number=55, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_ANDROID_APP_LINK', index=56, number=56, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NUMBER_TYPE_WITH_CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY', index=57, number=57, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='RESERVED_KEYWORD_OTHER', index=58, number=58, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DUPLICATE_OPTION_LABELS', index=59, number=59, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DUPLICATE_OPTION_PREFILLS', index=60, number=60, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNEQUAL_LIST_LENGTHS', index=61, number=61, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INCONSISTENT_CURRENCY_CODES', index=62, number=62, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PRICE_EXTENSION_HAS_DUPLICATED_HEADERS', index=63, number=63, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ITEM_HAS_DUPLICATED_HEADER_AND_DESCRIPTION', index=64, number=64, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PRICE_EXTENSION_HAS_TOO_FEW_ITEMS', index=65, number=65, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNSUPPORTED_VALUE', index=66, number=66, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_FINAL_MOBILE_URL', index=67, number=67, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_KEYWORDLESS_AD_RULE_LABEL', index=68, number=68, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='VALUE_TRACK_PARAMETER_NOT_SUPPORTED', index=69, number=69, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNSUPPORTED_VALUE_IN_SELECTED_LANGUAGE', index=70, number=70, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_IOS_APP_LINK', index=71, number=71, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_IOS_APP_LINK_OR_IOS_APP_STORE_ID', index=72, number=72, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PROMOTION_INVALID_TIME', index=73, number=73, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PROMOTION_CANNOT_SET_PERCENT_OFF_AND_MONEY_AMOUNT_OFF', index=74, number=74, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PROMOTION_CANNOT_SET_PROMOTION_CODE_AND_ORDERS_OVER_AMOUNT', index=75, number=75, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TOO_MANY_DECIMAL_PLACES_SPECIFIED', index=76, number=76, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AD_CUSTOMIZERS_NOT_ALLOWED', index=77, number=77, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_LANGUAGE_CODE', index=78, number=78, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNSUPPORTED_LANGUAGE', index=79, number=79, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='IF_FUNCTION_NOT_ALLOWED', index=80, number=80, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_FINAL_URL_SUFFIX', index=81, number=81, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_TAG_IN_FINAL_URL_SUFFIX', index=82, number=82, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_FINAL_URL_SUFFIX_FORMAT', index=83, number=83, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED', index=84, number=84, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ONLY_ONE_DELIVERY_OPTION_IS_ALLOWED', index=85, number=85, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NO_DELIVERY_OPTION_IS_SET', index=86, number=86, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_CONVERSION_REPORTING_STATE', index=87, number=87, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='IMAGE_SIZE_WRONG', index=88, number=88, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='EMAIL_DELIVERY_NOT_AVAILABLE_IN_COUNTRY', index=89, number=89, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='AUTO_REPLY_NOT_AVAILABLE_IN_COUNTRY', index=90, number=90, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=168, + serialized_end=3230, +) +_sym_db.RegisterEnumDescriptor(_FEEDITEMVALIDATIONERRORENUM_FEEDITEMVALIDATIONERROR) + + +_FEEDITEMVALIDATIONERRORENUM = _descriptor.Descriptor( + name='FeedItemValidationErrorEnum', + full_name='google.ads.googleads.v1.errors.FeedItemValidationErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _FEEDITEMVALIDATIONERRORENUM_FEEDITEMVALIDATIONERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=136, + serialized_end=3230, +) + +_FEEDITEMVALIDATIONERRORENUM_FEEDITEMVALIDATIONERROR.containing_type = _FEEDITEMVALIDATIONERRORENUM +DESCRIPTOR.message_types_by_name['FeedItemValidationErrorEnum'] = _FEEDITEMVALIDATIONERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +FeedItemValidationErrorEnum = _reflection.GeneratedProtocolMessageType('FeedItemValidationErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _FEEDITEMVALIDATIONERRORENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(FeedItemValidationErrorEnum) + + +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/v1/proto/errors/feed_item_validation_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/feed_item_validation_error_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/errors/feed_mapping_error_pb2.py b/google/ads/google_ads/v1/proto/errors/feed_mapping_error_pb2.py new file mode 100644 index 000000000..bc17d930b --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/feed_mapping_error_pb2.py @@ -0,0 +1,156 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/errors/feed_mapping_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_mapping_error.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_FEEDMAPPINGERRORENUM_FEEDMAPPINGERROR = _descriptor.EnumDescriptor( + name='FeedMappingError', + full_name='google.ads.googleads.v1.errors.FeedMappingErrorEnum.FeedMappingError', + 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_PLACEHOLDER_FIELD', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_CRITERION_FIELD', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_PLACEHOLDER_TYPE', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_CRITERION_TYPE', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NO_ATTRIBUTE_FIELD_MAPPINGS', index=6, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FEED_ATTRIBUTE_TYPE_MISMATCH', index=7, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_OPERATE_ON_MAPPINGS_FOR_SYSTEM_GENERATED_FEED', index=8, number=9, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MULTIPLE_MAPPINGS_FOR_PLACEHOLDER_TYPE', index=9, number=10, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MULTIPLE_MAPPINGS_FOR_CRITERION_TYPE', index=10, number=11, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MULTIPLE_MAPPINGS_FOR_PLACEHOLDER_FIELD', index=11, number=12, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MULTIPLE_MAPPINGS_FOR_CRITERION_FIELD', index=12, number=13, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNEXPECTED_ATTRIBUTE_FIELD_MAPPINGS', index=13, number=14, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LOCATION_PLACEHOLDER_ONLY_FOR_PLACES_FEEDS', index=14, number=15, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_MODIFY_MAPPINGS_FOR_TYPED_FEED', index=15, number=16, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_PLACEHOLDER_TYPE_FOR_NON_SYSTEM_GENERATED_FEED', index=16, number=17, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_PLACEHOLDER_TYPE_FOR_SYSTEM_GENERATED_FEED_TYPE', index=17, number=18, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=153, + serialized_end=871, +) +_sym_db.RegisterEnumDescriptor(_FEEDMAPPINGERRORENUM_FEEDMAPPINGERROR) + + +_FEEDMAPPINGERRORENUM = _descriptor.Descriptor( + name='FeedMappingErrorEnum', + full_name='google.ads.googleads.v1.errors.FeedMappingErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _FEEDMAPPINGERRORENUM_FEEDMAPPINGERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=128, + serialized_end=871, +) + +_FEEDMAPPINGERRORENUM_FEEDMAPPINGERROR.containing_type = _FEEDMAPPINGERRORENUM +DESCRIPTOR.message_types_by_name['FeedMappingErrorEnum'] = _FEEDMAPPINGERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +FeedMappingErrorEnum = _reflection.GeneratedProtocolMessageType('FeedMappingErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _FEEDMAPPINGERRORENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(FeedMappingErrorEnum) + + +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/v1/proto/errors/feed_mapping_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/feed_mapping_error_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/errors/field_error_pb2.py b/google/ads/google_ads/v1/proto/errors/field_error_pb2.py new file mode 100644 index 000000000..bc7ce6608 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/field_error_pb2.py @@ -0,0 +1,120 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/errors/field_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/field_error.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_FIELDERRORENUM_FIELDERROR = _descriptor.EnumDescriptor( + name='FieldError', + full_name='google.ads.googleads.v1.errors.FieldErrorEnum.FieldError', + 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', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='IMMUTABLE_FIELD', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_VALUE', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='VALUE_MUST_BE_UNSET', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='REQUIRED_NONEMPTY_LIST', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FIELD_CANNOT_BE_CLEARED', index=7, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BLACKLISTED_VALUE', index=8, number=8, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=140, + serialized_end=341, +) +_sym_db.RegisterEnumDescriptor(_FIELDERRORENUM_FIELDERROR) + + +_FIELDERRORENUM = _descriptor.Descriptor( + name='FieldErrorEnum', + full_name='google.ads.googleads.v1.errors.FieldErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _FIELDERRORENUM_FIELDERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=121, + serialized_end=341, +) + +_FIELDERRORENUM_FIELDERROR.containing_type = _FIELDERRORENUM +DESCRIPTOR.message_types_by_name['FieldErrorEnum'] = _FIELDERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +FieldErrorEnum = _reflection.GeneratedProtocolMessageType('FieldErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _FIELDERRORENUM, + __module__ = 'google.ads.googleads_v1.proto.errors.field_error_pb2' + , + __doc__ = """Container for enum describing possible field errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.FieldErrorEnum) + )) +_sym_db.RegisterMessage(FieldErrorEnum) + + +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/v1/proto/errors/field_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/field_error_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/errors/field_mask_error_pb2.py b/google/ads/google_ads/v1/proto/errors/field_mask_error_pb2.py new file mode 100644 index 000000000..e08f60eac --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/field_mask_error_pb2.py @@ -0,0 +1,108 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/errors/field_mask_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/field_mask_error.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_FIELDMASKERRORENUM_FIELDMASKERROR = _descriptor.EnumDescriptor( + name='FieldMaskError', + full_name='google.ads.googleads.v1.errors.FieldMaskErrorEnum.FieldMaskError', + 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='FIELD_MASK_MISSING', index=2, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FIELD_MASK_NOT_ALLOWED', index=3, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FIELD_NOT_FOUND', index=4, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FIELD_HAS_SUBFIELDS', index=5, number=3, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=149, + serialized_end=293, +) +_sym_db.RegisterEnumDescriptor(_FIELDMASKERRORENUM_FIELDMASKERROR) + + +_FIELDMASKERRORENUM = _descriptor.Descriptor( + name='FieldMaskErrorEnum', + full_name='google.ads.googleads.v1.errors.FieldMaskErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _FIELDMASKERRORENUM_FIELDMASKERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=126, + serialized_end=293, +) + +_FIELDMASKERRORENUM_FIELDMASKERROR.containing_type = _FIELDMASKERRORENUM +DESCRIPTOR.message_types_by_name['FieldMaskErrorEnum'] = _FIELDMASKERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +FieldMaskErrorEnum = _reflection.GeneratedProtocolMessageType('FieldMaskErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _FIELDMASKERRORENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(FieldMaskErrorEnum) + + +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/v1/proto/errors/field_mask_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/field_mask_error_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/errors/function_error_pb2.py b/google/ads/google_ads/v1/proto/errors/function_error_pb2.py new file mode 100644 index 000000000..0469934b8 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/function_error_pb2.py @@ -0,0 +1,156 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/errors/function_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/function_error.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_FUNCTIONERRORENUM_FUNCTIONERROR = _descriptor.EnumDescriptor( + name='FunctionError', + full_name='google.ads.googleads.v1.errors.FunctionErrorEnum.FunctionError', + 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_FUNCTION_FORMAT', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DATA_TYPE_MISMATCH', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_CONJUNCTION_OPERANDS', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_NUMBER_OF_OPERANDS', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_OPERAND_TYPE', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_OPERATOR', index=7, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_REQUEST_CONTEXT_TYPE', index=8, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_FUNCTION_FOR_CALL_PLACEHOLDER', index=9, number=9, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_FUNCTION_FOR_PLACEHOLDER', index=10, number=10, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_OPERAND', index=11, number=11, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_CONSTANT_OPERAND_VALUE', index=12, number=12, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_CONSTANT_OPERAND_VALUE', index=13, number=13, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_NESTING', index=14, number=14, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MULTIPLE_FEED_IDS_NOT_SUPPORTED', index=15, number=15, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_FUNCTION_FOR_FEED_WITH_FIXED_SCHEMA', index=16, number=16, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_ATTRIBUTE_NAME', index=17, number=17, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=146, + serialized_end=701, +) +_sym_db.RegisterEnumDescriptor(_FUNCTIONERRORENUM_FUNCTIONERROR) + + +_FUNCTIONERRORENUM = _descriptor.Descriptor( + name='FunctionErrorEnum', + full_name='google.ads.googleads.v1.errors.FunctionErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _FUNCTIONERRORENUM_FUNCTIONERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=124, + serialized_end=701, +) + +_FUNCTIONERRORENUM_FUNCTIONERROR.containing_type = _FUNCTIONERRORENUM +DESCRIPTOR.message_types_by_name['FunctionErrorEnum'] = _FUNCTIONERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +FunctionErrorEnum = _reflection.GeneratedProtocolMessageType('FunctionErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _FUNCTIONERRORENUM, + __module__ = 'google.ads.googleads_v1.proto.errors.function_error_pb2' + , + __doc__ = """Container for enum describing possible function errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.FunctionErrorEnum) + )) +_sym_db.RegisterMessage(FunctionErrorEnum) + + +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/v1/proto/errors/function_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/function_error_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/errors/function_parsing_error_pb2.py b/google/ads/google_ads/v1/proto/errors/function_parsing_error_pb2.py new file mode 100644 index 000000000..3b3af3da6 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/function_parsing_error_pb2.py @@ -0,0 +1,136 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/errors/function_parsing_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/function_parsing_error.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_FUNCTIONPARSINGERRORENUM_FUNCTIONPARSINGERROR = _descriptor.EnumDescriptor( + name='FunctionParsingError', + full_name='google.ads.googleads.v1.errors.FunctionParsingErrorEnum.FunctionParsingError', + 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_MORE_INPUT', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='EXPECTED_CHARACTER', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNEXPECTED_SEPARATOR', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNMATCHED_LEFT_BRACKET', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNMATCHED_RIGHT_BRACKET', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TOO_MANY_NESTED_FUNCTIONS', index=7, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_RIGHT_HAND_OPERAND', index=8, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_OPERATOR_NAME', index=9, number=9, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FEED_ATTRIBUTE_OPERAND_ARGUMENT_NOT_INTEGER', index=10, number=10, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NO_OPERANDS', index=11, number=11, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TOO_MANY_OPERANDS', index=12, number=12, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=161, + serialized_end=518, +) +_sym_db.RegisterEnumDescriptor(_FUNCTIONPARSINGERRORENUM_FUNCTIONPARSINGERROR) + + +_FUNCTIONPARSINGERRORENUM = _descriptor.Descriptor( + name='FunctionParsingErrorEnum', + full_name='google.ads.googleads.v1.errors.FunctionParsingErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _FUNCTIONPARSINGERRORENUM_FUNCTIONPARSINGERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=132, + serialized_end=518, +) + +_FUNCTIONPARSINGERRORENUM_FUNCTIONPARSINGERROR.containing_type = _FUNCTIONPARSINGERRORENUM +DESCRIPTOR.message_types_by_name['FunctionParsingErrorEnum'] = _FUNCTIONPARSINGERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +FunctionParsingErrorEnum = _reflection.GeneratedProtocolMessageType('FunctionParsingErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _FUNCTIONPARSINGERRORENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(FunctionParsingErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/function_parsing_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/function_parsing_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/function_parsing_error_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/errors/geo_target_constant_suggestion_error_pb2.py b/google/ads/google_ads/v1/proto/errors/geo_target_constant_suggestion_error_pb2.py new file mode 100644 index 000000000..a88adab5d --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/geo_target_constant_suggestion_error_pb2.py @@ -0,0 +1,109 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/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')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf 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/geo_target_constant_suggestion_error.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_GEOTARGETCONSTANTSUGGESTIONERRORENUM_GEOTARGETCONSTANTSUGGESTIONERROR = _descriptor.EnumDescriptor( + name='GeoTargetConstantSuggestionError', + full_name='google.ads.googleads.v1.errors.GeoTargetConstantSuggestionErrorEnum.GeoTargetConstantSuggestionError', + 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_NAME_SIZE_LIMIT', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LOCATION_NAME_LIMIT', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_COUNTRY_CODE', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='REQUEST_PARAMETERS_UNSET', index=5, number=5, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=187, + serialized_end=362, +) +_sym_db.RegisterEnumDescriptor(_GEOTARGETCONSTANTSUGGESTIONERRORENUM_GEOTARGETCONSTANTSUGGESTIONERROR) + + +_GEOTARGETCONSTANTSUGGESTIONERRORENUM = _descriptor.Descriptor( + name='GeoTargetConstantSuggestionErrorEnum', + full_name='google.ads.googleads.v1.errors.GeoTargetConstantSuggestionErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _GEOTARGETCONSTANTSUGGESTIONERRORENUM_GEOTARGETCONSTANTSUGGESTIONERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=146, + serialized_end=362, +) + +_GEOTARGETCONSTANTSUGGESTIONERRORENUM_GEOTARGETCONSTANTSUGGESTIONERROR.containing_type = _GEOTARGETCONSTANTSUGGESTIONERRORENUM +DESCRIPTOR.message_types_by_name['GeoTargetConstantSuggestionErrorEnum'] = _GEOTARGETCONSTANTSUGGESTIONERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +GeoTargetConstantSuggestionErrorEnum = _reflection.GeneratedProtocolMessageType('GeoTargetConstantSuggestionErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _GEOTARGETCONSTANTSUGGESTIONERRORENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(GeoTargetConstantSuggestionErrorEnum) + + +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/v1/proto/errors/geo_target_constant_suggestion_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/geo_target_constant_suggestion_error_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/errors/header_error_pb2.py b/google/ads/google_ads/v1/proto/errors/header_error_pb2.py new file mode 100644 index 000000000..734ef8a3e --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/header_error_pb2.py @@ -0,0 +1,96 @@ +# 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/header_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/header_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/header_error_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/errors/id_error_pb2.py b/google/ads/google_ads/v1/proto/errors/id_error_pb2.py new file mode 100644 index 000000000..6b7b9de80 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/id_error_pb2.py @@ -0,0 +1,96 @@ +# 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/id_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/id_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/id_error_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/errors/image_error_pb2.py b/google/ads/google_ads/v1/proto/errors/image_error_pb2.py new file mode 100644 index 000000000..f1595d53e --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/image_error_pb2.py @@ -0,0 +1,240 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/errors/image_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/image_error.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_IMAGEERRORENUM_IMAGEERROR = _descriptor.EnumDescriptor( + name='ImageError', + full_name='google.ads.googleads.v1.errors.ImageErrorEnum.ImageError', + 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_IMAGE', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='STORAGE_ERROR', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BAD_REQUEST', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNEXPECTED_SIZE', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ANIMATED_NOT_ALLOWED', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ANIMATION_TOO_LONG', index=7, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SERVER_ERROR', index=8, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CMYK_JPEG_NOT_ALLOWED', index=9, number=9, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FLASH_NOT_ALLOWED', index=10, number=10, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FLASH_WITHOUT_CLICKTAG', index=11, number=11, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FLASH_ERROR_AFTER_FIXING_CLICK_TAG', index=12, number=12, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ANIMATED_VISUAL_EFFECT', index=13, number=13, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FLASH_ERROR', index=14, number=14, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LAYOUT_PROBLEM', index=15, number=15, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PROBLEM_READING_IMAGE_FILE', index=16, number=16, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ERROR_STORING_IMAGE', index=17, number=17, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ASPECT_RATIO_NOT_ALLOWED', index=18, number=18, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FLASH_HAS_NETWORK_OBJECTS', index=19, number=19, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FLASH_HAS_NETWORK_METHODS', index=20, number=20, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FLASH_HAS_URL', index=21, number=21, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FLASH_HAS_MOUSE_TRACKING', index=22, number=22, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FLASH_HAS_RANDOM_NUM', index=23, number=23, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FLASH_SELF_TARGETS', index=24, number=24, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FLASH_BAD_GETURL_TARGET', index=25, number=25, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FLASH_VERSION_NOT_SUPPORTED', index=26, number=26, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FLASH_WITHOUT_HARD_CODED_CLICK_URL', index=27, number=27, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_FLASH_FILE', index=28, number=28, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FAILED_TO_FIX_CLICK_TAG_IN_FLASH', index=29, number=29, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FLASH_ACCESSES_NETWORK_RESOURCES', index=30, number=30, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FLASH_EXTERNAL_JS_CALL', index=31, number=31, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FLASH_EXTERNAL_FS_CALL', index=32, number=32, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FILE_TOO_LARGE', index=33, number=33, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='IMAGE_DATA_TOO_LARGE', index=34, number=34, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='IMAGE_PROCESSING_ERROR', index=35, number=35, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='IMAGE_TOO_SMALL', index=36, number=36, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_INPUT', index=37, number=37, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PROBLEM_READING_FILE', index=38, number=38, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=140, + serialized_end=1155, +) +_sym_db.RegisterEnumDescriptor(_IMAGEERRORENUM_IMAGEERROR) + + +_IMAGEERRORENUM = _descriptor.Descriptor( + name='ImageErrorEnum', + full_name='google.ads.googleads.v1.errors.ImageErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _IMAGEERRORENUM_IMAGEERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=121, + serialized_end=1155, +) + +_IMAGEERRORENUM_IMAGEERROR.containing_type = _IMAGEERRORENUM +DESCRIPTOR.message_types_by_name['ImageErrorEnum'] = _IMAGEERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +ImageErrorEnum = _reflection.GeneratedProtocolMessageType('ImageErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _IMAGEERRORENUM, + __module__ = 'google.ads.googleads_v1.proto.errors.image_error_pb2' + , + __doc__ = """Container for enum describing possible image errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.ImageErrorEnum) + )) +_sym_db.RegisterMessage(ImageErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/image_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/image_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/image_error_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/errors/internal_error_pb2.py b/google/ads/google_ads/v1/proto/errors/internal_error_pb2.py new file mode 100644 index 000000000..940263fbf --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/internal_error_pb2.py @@ -0,0 +1,104 @@ +# 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/internal_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/internal_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/internal_error_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/errors/keyword_plan_ad_group_error_pb2.py b/google/ads/google_ads/v1/proto/errors/keyword_plan_ad_group_error_pb2.py new file mode 100644 index 000000000..17388c4c2 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/keyword_plan_ad_group_error_pb2.py @@ -0,0 +1,101 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/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')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf 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_ad_group_error.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_KEYWORDPLANADGROUPERRORENUM_KEYWORDPLANADGROUPERROR = _descriptor.EnumDescriptor( + name='KeywordPlanAdGroupError', + full_name='google.ads.googleads.v1.errors.KeywordPlanAdGroupErrorEnum.KeywordPlanAdGroupError', + 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='DUPLICATE_NAME', index=3, number=3, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=167, + serialized_end=260, +) +_sym_db.RegisterEnumDescriptor(_KEYWORDPLANADGROUPERRORENUM_KEYWORDPLANADGROUPERROR) + + +_KEYWORDPLANADGROUPERRORENUM = _descriptor.Descriptor( + name='KeywordPlanAdGroupErrorEnum', + full_name='google.ads.googleads.v1.errors.KeywordPlanAdGroupErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _KEYWORDPLANADGROUPERRORENUM_KEYWORDPLANADGROUPERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=136, + serialized_end=260, +) + +_KEYWORDPLANADGROUPERRORENUM_KEYWORDPLANADGROUPERROR.containing_type = _KEYWORDPLANADGROUPERRORENUM +DESCRIPTOR.message_types_by_name['KeywordPlanAdGroupErrorEnum'] = _KEYWORDPLANADGROUPERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +KeywordPlanAdGroupErrorEnum = _reflection.GeneratedProtocolMessageType('KeywordPlanAdGroupErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _KEYWORDPLANADGROUPERRORENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(KeywordPlanAdGroupErrorEnum) + + +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/v1/proto/errors/keyword_plan_ad_group_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/keyword_plan_ad_group_error_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/errors/keyword_plan_campaign_error_pb2.py b/google/ads/google_ads/v1/proto/errors/keyword_plan_campaign_error_pb2.py new file mode 100644 index 000000000..8b16a1056 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/keyword_plan_campaign_error_pb2.py @@ -0,0 +1,113 @@ +# 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_campaign_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/keyword_plan_campaign_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/keyword_plan_campaign_error_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/errors/keyword_plan_error_pb2.py b/google/ads/google_ads/v1/proto/errors/keyword_plan_error_pb2.py new file mode 100644 index 000000000..adc529f0f --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/keyword_plan_error_pb2.py @@ -0,0 +1,150 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/errors/keyword_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_v1/proto/errors/keyword_plan_error.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_KEYWORDPLANERRORENUM_KEYWORDPLANERROR = _descriptor.EnumDescriptor( + name='KeywordPlanError', + full_name='google.ads.googleads.v1.errors.KeywordPlanErrorEnum.KeywordPlanError', + 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='BID_MULTIPLIER_OUT_OF_RANGE', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BID_TOO_HIGH', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BID_TOO_LOW', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BID_TOO_MANY_FRACTIONAL_DIGITS', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DAILY_BUDGET_TOO_LOW', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DAILY_BUDGET_TOO_MANY_FRACTIONAL_DIGITS', index=7, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_VALUE', index=8, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='KEYWORD_PLAN_HAS_NO_KEYWORDS', index=9, number=9, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='KEYWORD_PLAN_NOT_ENABLED', index=10, number=10, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='KEYWORD_PLAN_NOT_FOUND', index=11, number=11, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_BID', index=12, number=13, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_FORECAST_PERIOD', index=13, number=14, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_FORECAST_DATE_RANGE', index=14, number=15, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_NAME', index=15, number=16, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=153, + serialized_end=584, +) +_sym_db.RegisterEnumDescriptor(_KEYWORDPLANERRORENUM_KEYWORDPLANERROR) + + +_KEYWORDPLANERRORENUM = _descriptor.Descriptor( + name='KeywordPlanErrorEnum', + full_name='google.ads.googleads.v1.errors.KeywordPlanErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _KEYWORDPLANERRORENUM_KEYWORDPLANERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=128, + serialized_end=584, +) + +_KEYWORDPLANERRORENUM_KEYWORDPLANERROR.containing_type = _KEYWORDPLANERRORENUM +DESCRIPTOR.message_types_by_name['KeywordPlanErrorEnum'] = _KEYWORDPLANERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +KeywordPlanErrorEnum = _reflection.GeneratedProtocolMessageType('KeywordPlanErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _KEYWORDPLANERRORENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(KeywordPlanErrorEnum) + + +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/v1/proto/errors/keyword_plan_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/keyword_plan_error_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/errors/keyword_plan_idea_error_pb2.py b/google/ads/google_ads/v1/proto/errors/keyword_plan_idea_error_pb2.py new file mode 100644 index 000000000..496e78c23 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/keyword_plan_idea_error_pb2.py @@ -0,0 +1,101 @@ +# 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_idea_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/keyword_plan_idea_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/keyword_plan_idea_error_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/errors/keyword_plan_keyword_error_pb2.py b/google/ads/google_ads/v1/proto/errors/keyword_plan_keyword_error_pb2.py new file mode 100644 index 000000000..bc41e9dce --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/keyword_plan_keyword_error_pb2.py @@ -0,0 +1,117 @@ +# 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_keyword_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/keyword_plan_keyword_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/keyword_plan_keyword_error_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/errors/keyword_plan_negative_keyword_error_pb2.py b/google/ads/google_ads/v1/proto/errors/keyword_plan_negative_keyword_error_pb2.py new file mode 100644 index 000000000..e8eb11ba9 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/keyword_plan_negative_keyword_error_pb2.py @@ -0,0 +1,93 @@ +# 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/keyword_plan_negative_keyword_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/keyword_plan_negative_keyword_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/keyword_plan_negative_keyword_error_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/errors/label_error_pb2.py b/google/ads/google_ads/v1/proto/errors/label_error_pb2.py new file mode 100644 index 000000000..a4dbd1bbd --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/label_error_pb2.py @@ -0,0 +1,128 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/errors/label_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/label_error.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_LABELERRORENUM_LABELERROR = _descriptor.EnumDescriptor( + name='LabelError', + full_name='google.ads.googleads.v1.errors.LabelErrorEnum.LabelError', + 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_APPLY_INACTIVE_LABEL', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_APPLY_LABEL_TO_DISABLED_AD_GROUP_CRITERION', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_APPLY_LABEL_TO_NEGATIVE_AD_GROUP_CRITERION', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='EXCEEDED_LABEL_LIMIT_PER_TYPE', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_RESOURCE_FOR_MANAGER_LABEL', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DUPLICATE_NAME', index=7, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_LABEL_NAME', index=8, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_ATTACH_LABEL_TO_DRAFT', index=9, number=9, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_ATTACH_NON_MANAGER_LABEL_TO_CUSTOMER', index=10, number=10, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=140, + serialized_end=527, +) +_sym_db.RegisterEnumDescriptor(_LABELERRORENUM_LABELERROR) + + +_LABELERRORENUM = _descriptor.Descriptor( + name='LabelErrorEnum', + full_name='google.ads.googleads.v1.errors.LabelErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _LABELERRORENUM_LABELERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=121, + serialized_end=527, +) + +_LABELERRORENUM_LABELERROR.containing_type = _LABELERRORENUM +DESCRIPTOR.message_types_by_name['LabelErrorEnum'] = _LABELERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +LabelErrorEnum = _reflection.GeneratedProtocolMessageType('LabelErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _LABELERRORENUM, + __module__ = 'google.ads.googleads_v1.proto.errors.label_error_pb2' + , + __doc__ = """Container for enum describing possible label errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.LabelErrorEnum) + )) +_sym_db.RegisterMessage(LabelErrorEnum) + + +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/v1/proto/errors/label_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/label_error_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/errors/language_code_error_pb2.py b/google/ads/google_ads/v1/proto/errors/language_code_error_pb2.py new file mode 100644 index 000000000..108114b84 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/language_code_error_pb2.py @@ -0,0 +1,100 @@ +# 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/language_code_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/language_code_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/language_code_error_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/errors/list_operation_error_pb2.py b/google/ads/google_ads/v1/proto/errors/list_operation_error_pb2.py new file mode 100644 index 000000000..a0791003f --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/list_operation_error_pb2.py @@ -0,0 +1,100 @@ +# 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/list_operation_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/list_operation_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/list_operation_error_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/errors/media_bundle_error_pb2.py b/google/ads/google_ads/v1/proto/errors/media_bundle_error_pb2.py new file mode 100644 index 000000000..ae9e7424f --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/media_bundle_error_pb2.py @@ -0,0 +1,180 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/errors/media_bundle_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_bundle_error.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_MEDIABUNDLEERRORENUM_MEDIABUNDLEERROR = _descriptor.EnumDescriptor( + name='MediaBundleError', + full_name='google.ads.googleads.v1.errors.MediaBundleErrorEnum.MediaBundleError', + 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='BAD_REQUEST', index=2, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DOUBLECLICK_BUNDLE_NOT_ALLOWED', index=3, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='EXTERNAL_URL_NOT_ALLOWED', index=4, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FILE_TOO_LARGE', index=5, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='GOOGLE_WEB_DESIGNER_ZIP_FILE_NOT_PUBLISHED', index=6, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_INPUT', index=7, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_MEDIA_BUNDLE', index=8, number=9, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_MEDIA_BUNDLE_ENTRY', index=9, number=10, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_MIME_TYPE', index=10, number=11, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_PATH', index=11, number=12, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_URL_REFERENCE', index=12, number=13, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MEDIA_DATA_TOO_LARGE', index=13, number=14, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_PRIMARY_MEDIA_BUNDLE_ENTRY', index=14, number=15, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SERVER_ERROR', index=15, number=16, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='STORAGE_ERROR', index=16, number=17, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SWIFFY_BUNDLE_NOT_ALLOWED', index=17, number=18, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TOO_MANY_FILES', index=18, number=19, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNEXPECTED_SIZE', index=19, number=20, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNSUPPORTED_GOOGLE_WEB_DESIGNER_ENVIRONMENT', index=20, number=21, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNSUPPORTED_HTML5_FEATURE', index=21, number=22, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='URL_IN_MEDIA_BUNDLE_NOT_SSL_COMPLIANT', index=22, number=23, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CUSTOM_EXIT_NOT_ALLOWED', index=23, number=24, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=153, + serialized_end=824, +) +_sym_db.RegisterEnumDescriptor(_MEDIABUNDLEERRORENUM_MEDIABUNDLEERROR) + + +_MEDIABUNDLEERRORENUM = _descriptor.Descriptor( + name='MediaBundleErrorEnum', + full_name='google.ads.googleads.v1.errors.MediaBundleErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _MEDIABUNDLEERRORENUM_MEDIABUNDLEERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=128, + serialized_end=824, +) + +_MEDIABUNDLEERRORENUM_MEDIABUNDLEERROR.containing_type = _MEDIABUNDLEERRORENUM +DESCRIPTOR.message_types_by_name['MediaBundleErrorEnum'] = _MEDIABUNDLEERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +MediaBundleErrorEnum = _reflection.GeneratedProtocolMessageType('MediaBundleErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _MEDIABUNDLEERRORENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(MediaBundleErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/media_bundle_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/media_bundle_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/media_bundle_error_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/errors/media_file_error_pb2.py b/google/ads/google_ads/v1/proto/errors/media_file_error_pb2.py new file mode 100644 index 000000000..e1a4978cc --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/media_file_error_pb2.py @@ -0,0 +1,184 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/errors/media_file_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_file_error.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_MEDIAFILEERRORENUM_MEDIAFILEERROR = _descriptor.EnumDescriptor( + name='MediaFileError', + full_name='google.ads.googleads.v1.errors.MediaFileErrorEnum.MediaFileError', + 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_CREATE_STANDARD_ICON', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_SELECT_STANDARD_ICON_WITH_OTHER_TYPES', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_SPECIFY_MEDIA_FILE_ID_AND_DATA', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DUPLICATE_MEDIA', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='EMPTY_FIELD', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='RESOURCE_REFERENCED_IN_MULTIPLE_OPS', index=7, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FIELD_NOT_SUPPORTED_FOR_MEDIA_SUB_TYPE', index=8, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_MEDIA_FILE_ID', index=9, number=9, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_MEDIA_SUB_TYPE', index=10, number=10, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_MEDIA_FILE_TYPE', index=11, number=11, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_MIME_TYPE', index=12, number=12, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_REFERENCE_ID', index=13, number=13, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_YOU_TUBE_ID', index=14, number=14, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MEDIA_FILE_FAILED_TRANSCODING', index=15, number=15, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MEDIA_NOT_TRANSCODED', index=16, number=16, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MEDIA_TYPE_DOES_NOT_MATCH_MEDIA_FILE_TYPE', index=17, number=17, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NO_FIELDS_SPECIFIED', index=18, number=18, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NULL_REFERENCE_ID_AND_MEDIA_ID', index=19, number=19, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TOO_LONG', index=20, number=20, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNSUPPORTED_TYPE', index=21, number=21, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='YOU_TUBE_SERVICE_UNAVAILABLE', index=22, number=22, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='YOU_TUBE_VIDEO_HAS_NON_POSITIVE_DURATION', index=23, number=23, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='YOU_TUBE_VIDEO_NOT_FOUND', index=24, number=24, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=149, + serialized_end=917, +) +_sym_db.RegisterEnumDescriptor(_MEDIAFILEERRORENUM_MEDIAFILEERROR) + + +_MEDIAFILEERRORENUM = _descriptor.Descriptor( + name='MediaFileErrorEnum', + full_name='google.ads.googleads.v1.errors.MediaFileErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _MEDIAFILEERRORENUM_MEDIAFILEERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=126, + serialized_end=917, +) + +_MEDIAFILEERRORENUM_MEDIAFILEERROR.containing_type = _MEDIAFILEERRORENUM +DESCRIPTOR.message_types_by_name['MediaFileErrorEnum'] = _MEDIAFILEERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +MediaFileErrorEnum = _reflection.GeneratedProtocolMessageType('MediaFileErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _MEDIAFILEERRORENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(MediaFileErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/media_file_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/media_file_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/media_file_error_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/errors/multiplier_error_pb2.py b/google/ads/google_ads/v1/proto/errors/multiplier_error_pb2.py new file mode 100644 index 000000000..f87acab16 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/multiplier_error_pb2.py @@ -0,0 +1,140 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/errors/multiplier_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/multiplier_error.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_MULTIPLIERERRORENUM_MULTIPLIERERROR = _descriptor.EnumDescriptor( + name='MultiplierError', + full_name='google.ads.googleads.v1.errors.MultiplierErrorEnum.MultiplierError', + 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='MULTIPLIER_TOO_HIGH', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MULTIPLIER_TOO_LOW', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TOO_MANY_FRACTIONAL_DIGITS', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MULTIPLIER_NOT_ALLOWED_FOR_BIDDING_STRATEGY', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MULTIPLIER_NOT_ALLOWED_WHEN_BASE_BID_IS_MISSING', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NO_MULTIPLIER_SPECIFIED', index=7, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MULTIPLIER_CAUSES_BID_TO_EXCEED_DAILY_BUDGET', index=8, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MULTIPLIER_CAUSES_BID_TO_EXCEED_MONTHLY_BUDGET', index=9, number=9, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MULTIPLIER_CAUSES_BID_TO_EXCEED_CUSTOM_BUDGET', index=10, number=10, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MULTIPLIER_CAUSES_BID_TO_EXCEED_MAX_ALLOWED_BID', index=11, number=11, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BID_LESS_THAN_MIN_ALLOWED_BID_WITH_MULTIPLIER', index=12, number=12, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MULTIPLIER_AND_BIDDING_STRATEGY_TYPE_MISMATCH', index=13, number=13, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=150, + serialized_end=717, +) +_sym_db.RegisterEnumDescriptor(_MULTIPLIERERRORENUM_MULTIPLIERERROR) + + +_MULTIPLIERERRORENUM = _descriptor.Descriptor( + name='MultiplierErrorEnum', + full_name='google.ads.googleads.v1.errors.MultiplierErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _MULTIPLIERERRORENUM_MULTIPLIERERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=126, + serialized_end=717, +) + +_MULTIPLIERERRORENUM_MULTIPLIERERROR.containing_type = _MULTIPLIERERRORENUM +DESCRIPTOR.message_types_by_name['MultiplierErrorEnum'] = _MULTIPLIERERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +MultiplierErrorEnum = _reflection.GeneratedProtocolMessageType('MultiplierErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _MULTIPLIERERRORENUM, + __module__ = 'google.ads.googleads_v1.proto.errors.multiplier_error_pb2' + , + __doc__ = """Container for enum describing possible multiplier errors. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.errors.MultiplierErrorEnum) + )) +_sym_db.RegisterMessage(MultiplierErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/multiplier_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/multiplier_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/multiplier_error_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/errors/mutate_error_pb2.py b/google/ads/google_ads/v1/proto/errors/mutate_error_pb2.py new file mode 100644 index 000000000..031390f3b --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/mutate_error_pb2.py @@ -0,0 +1,112 @@ +# 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\"\xd1\x01\n\x0fMutateErrorEnum\"\xbd\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\nB\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), + ], + containing_type=None, + serialized_options=None, + serialized_start=142, + serialized_end=331, +) +_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=331, +) + +_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_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/mutate_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/mutate_error_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/errors/mutate_job_error_pb2.py b/google/ads/google_ads/v1/proto/errors/mutate_job_error_pb2.py new file mode 100644 index 000000000..3b6b608fe --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/mutate_job_error_pb2.py @@ -0,0 +1,112 @@ +# 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/mutate_job_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/mutate_job_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/mutate_job_error_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/errors/new_resource_creation_error_pb2.py b/google/ads/google_ads/v1/proto/errors/new_resource_creation_error_pb2.py new file mode 100644 index 000000000..a9674f246 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/new_resource_creation_error_pb2.py @@ -0,0 +1,104 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/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')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf 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/new_resource_creation_error.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_NEWRESOURCECREATIONERRORENUM_NEWRESOURCECREATIONERROR = _descriptor.EnumDescriptor( + name='NewResourceCreationError', + full_name='google.ads.googleads.v1.errors.NewResourceCreationErrorEnum.NewResourceCreationError', + 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_SET_ID_FOR_CREATE', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DUPLICATE_TEMP_IDS', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TEMP_ID_RESOURCE_HAD_ERRORS', index=4, number=4, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=170, + serialized_end=313, +) +_sym_db.RegisterEnumDescriptor(_NEWRESOURCECREATIONERRORENUM_NEWRESOURCECREATIONERROR) + + +_NEWRESOURCECREATIONERRORENUM = _descriptor.Descriptor( + name='NewResourceCreationErrorEnum', + full_name='google.ads.googleads.v1.errors.NewResourceCreationErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _NEWRESOURCECREATIONERRORENUM_NEWRESOURCECREATIONERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=137, + serialized_end=313, +) + +_NEWRESOURCECREATIONERRORENUM_NEWRESOURCECREATIONERROR.containing_type = _NEWRESOURCECREATIONERRORENUM +DESCRIPTOR.message_types_by_name['NewResourceCreationErrorEnum'] = _NEWRESOURCECREATIONERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +NewResourceCreationErrorEnum = _reflection.GeneratedProtocolMessageType('NewResourceCreationErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _NEWRESOURCECREATIONERRORENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(NewResourceCreationErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/new_resource_creation_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/new_resource_creation_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/new_resource_creation_error_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/errors/not_empty_error_pb2.py b/google/ads/google_ads/v1/proto/errors/not_empty_error_pb2.py new file mode 100644 index 000000000..1892e22e3 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/not_empty_error_pb2.py @@ -0,0 +1,96 @@ +# 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_empty_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/not_empty_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/not_empty_error_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/errors/null_error_pb2.py b/google/ads/google_ads/v1/proto/errors/null_error_pb2.py new file mode 100644 index 000000000..2240e9e9d --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/null_error_pb2.py @@ -0,0 +1,96 @@ +# 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/null_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/null_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/null_error_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/errors/operation_access_denied_error_pb2.py b/google/ads/google_ads/v1/proto/errors/operation_access_denied_error_pb2.py new file mode 100644 index 000000000..58c06c8ee --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/operation_access_denied_error_pb2.py @@ -0,0 +1,132 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/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')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf 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/operation_access_denied_error.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_OPERATIONACCESSDENIEDERRORENUM_OPERATIONACCESSDENIEDERROR = _descriptor.EnumDescriptor( + name='OperationAccessDeniedError', + full_name='google.ads.googleads.v1.errors.OperationAccessDeniedErrorEnum.OperationAccessDeniedError', + 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='ACTION_NOT_PERMITTED', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CREATE_OPERATION_NOT_PERMITTED', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='REMOVE_OPERATION_NOT_PERMITTED', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UPDATE_OPERATION_NOT_PERMITTED', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MUTATE_ACTION_NOT_PERMITTED_FOR_CLIENT', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE', index=7, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CREATE_AS_REMOVED_NOT_PERMITTED', index=8, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='OPERATION_NOT_PERMITTED_FOR_REMOVED_RESOURCE', index=9, number=9, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='OPERATION_NOT_PERMITTED_FOR_AD_GROUP_TYPE', index=10, number=10, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MUTATE_NOT_PERMITTED_FOR_CUSTOMER', index=11, number=11, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=174, + serialized_end=630, +) +_sym_db.RegisterEnumDescriptor(_OPERATIONACCESSDENIEDERRORENUM_OPERATIONACCESSDENIEDERROR) + + +_OPERATIONACCESSDENIEDERRORENUM = _descriptor.Descriptor( + name='OperationAccessDeniedErrorEnum', + full_name='google.ads.googleads.v1.errors.OperationAccessDeniedErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _OPERATIONACCESSDENIEDERRORENUM_OPERATIONACCESSDENIEDERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=139, + serialized_end=630, +) + +_OPERATIONACCESSDENIEDERRORENUM_OPERATIONACCESSDENIEDERROR.containing_type = _OPERATIONACCESSDENIEDERRORENUM +DESCRIPTOR.message_types_by_name['OperationAccessDeniedErrorEnum'] = _OPERATIONACCESSDENIEDERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +OperationAccessDeniedErrorEnum = _reflection.GeneratedProtocolMessageType('OperationAccessDeniedErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _OPERATIONACCESSDENIEDERRORENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(OperationAccessDeniedErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/operation_access_denied_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/operation_access_denied_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/operation_access_denied_error_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/errors/operator_error_pb2.py b/google/ads/google_ads/v1/proto/errors/operator_error_pb2.py new file mode 100644 index 000000000..69bdccf6a --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/operator_error_pb2.py @@ -0,0 +1,96 @@ +# 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/operator_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/operator_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/operator_error_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/errors/partial_failure_error_pb2.py b/google/ads/google_ads/v1/proto/errors/partial_failure_error_pb2.py new file mode 100644 index 000000000..415a3f441 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/partial_failure_error_pb2.py @@ -0,0 +1,96 @@ +# 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/partial_failure_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/partial_failure_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/partial_failure_error_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/errors/policy_finding_error_pb2.py b/google/ads/google_ads/v1/proto/errors/policy_finding_error_pb2.py new file mode 100644 index 000000000..97535215e --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/policy_finding_error_pb2.py @@ -0,0 +1,100 @@ +# 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_finding_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/policy_finding_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/policy_finding_error_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/errors/policy_validation_parameter_error_pb2.py b/google/ads/google_ads/v1/proto/errors/policy_validation_parameter_error_pb2.py new file mode 100644 index 000000000..22d51968a --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/policy_validation_parameter_error_pb2.py @@ -0,0 +1,97 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/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')) +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf 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_validation_parameter_error.proto', + package='google.ads.googleads.v1.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\"\x99\x01\n\"PolicyValidationParameterErrorEnum\"s\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\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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_POLICYVALIDATIONPARAMETERERRORENUM_POLICYVALIDATIONPARAMETERERROR = _descriptor.EnumDescriptor( + name='PolicyValidationParameterError', + full_name='google.ads.googleads.v1.errors.PolicyValidationParameterErrorEnum.PolicyValidationParameterError', + 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_AD_TYPE_FOR_IGNORABLE_POLICY_TOPICS', index=2, number=2, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=181, + serialized_end=296, +) +_sym_db.RegisterEnumDescriptor(_POLICYVALIDATIONPARAMETERERRORENUM_POLICYVALIDATIONPARAMETERERROR) + + +_POLICYVALIDATIONPARAMETERERRORENUM = _descriptor.Descriptor( + name='PolicyValidationParameterErrorEnum', + full_name='google.ads.googleads.v1.errors.PolicyValidationParameterErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _POLICYVALIDATIONPARAMETERERRORENUM_POLICYVALIDATIONPARAMETERERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=143, + serialized_end=296, +) + +_POLICYVALIDATIONPARAMETERERRORENUM_POLICYVALIDATIONPARAMETERERROR.containing_type = _POLICYVALIDATIONPARAMETERERRORENUM +DESCRIPTOR.message_types_by_name['PolicyValidationParameterErrorEnum'] = _POLICYVALIDATIONPARAMETERERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +PolicyValidationParameterErrorEnum = _reflection.GeneratedProtocolMessageType('PolicyValidationParameterErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _POLICYVALIDATIONPARAMETERERRORENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(PolicyValidationParameterErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/policy_validation_parameter_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/policy_validation_parameter_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/policy_validation_parameter_error_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/errors/policy_violation_error_pb2.py b/google/ads/google_ads/v1/proto/errors/policy_violation_error_pb2.py new file mode 100644 index 000000000..6fb336688 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/policy_violation_error_pb2.py @@ -0,0 +1,96 @@ +# 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/policy_violation_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/policy_violation_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/policy_violation_error_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/errors/query_error_pb2.py b/google/ads/google_ads/v1/proto/errors/query_error_pb2.py new file mode 100644 index 000000000..2c186e903 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/query_error_pb2.py @@ -0,0 +1,292 @@ +# 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\"\x87\r\n\x0eQueryErrorEnum\"\xf4\x0c\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$\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_RESOURCE_TYPE_IN_FROM_CLAUSE', index=9, number=45, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BAD_SYMBOL', index=10, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BAD_VALUE', index=11, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DATE_RANGE_TOO_WIDE', index=12, number=36, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='EXPECTED_AND', index=13, number=30, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='EXPECTED_BY', index=14, number=14, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='EXPECTED_DIMENSION_FIELD_IN_SELECT_CLAUSE', index=15, number=37, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='EXPECTED_FILTERS_ON_DATE_RANGE', index=16, number=55, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='EXPECTED_FROM', index=17, number=44, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='EXPECTED_LIST', index=18, number=41, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='EXPECTED_REFERENCED_FIELD_IN_SELECT_CLAUSE', index=19, number=16, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='EXPECTED_SELECT', index=20, number=13, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='EXPECTED_SINGLE_VALUE', index=21, number=42, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='EXPECTED_VALUE_WITH_BETWEEN_OPERATOR', index=22, number=29, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_DATE_FORMAT', index=23, number=38, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_STRING_VALUE', index=24, number=57, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_VALUE_WITH_BETWEEN_OPERATOR', index=25, number=26, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_VALUE_WITH_DURING_OPERATOR', index=26, number=22, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_VALUE_WITH_LIKE_OPERATOR', index=27, number=56, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='OPERATOR_FIELD_MISMATCH', index=28, number=35, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PROHIBITED_EMPTY_LIST_IN_CONDITION', index=29, number=28, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PROHIBITED_ENUM_CONSTANT', index=30, number=54, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PROHIBITED_FIELD_COMBINATION_IN_SELECT_CLAUSE', index=31, number=31, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PROHIBITED_FIELD_IN_ORDER_BY_CLAUSE', index=32, number=40, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PROHIBITED_FIELD_IN_SELECT_CLAUSE', index=33, number=23, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PROHIBITED_FIELD_IN_WHERE_CLAUSE', index=34, number=24, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PROHIBITED_RESOURCE_TYPE_IN_FROM_CLAUSE', index=35, number=43, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PROHIBITED_RESOURCE_TYPE_IN_SELECT_CLAUSE', index=36, number=48, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PROHIBITED_RESOURCE_TYPE_IN_WHERE_CLAUSE', index=37, number=58, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PROHIBITED_METRIC_IN_SELECT_OR_WHERE_CLAUSE', index=38, number=49, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PROHIBITED_SEGMENT_IN_SELECT_OR_WHERE_CLAUSE', index=39, number=51, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PROHIBITED_SEGMENT_WITH_METRIC_IN_SELECT_OR_WHERE_CLAUSE', index=40, number=53, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='LIMIT_VALUE_TOO_LOW', index=41, number=25, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PROHIBITED_NEWLINE_IN_STRING', index=42, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PROHIBITED_VALUE_COMBINATION_IN_LIST', index=43, number=10, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='PROHIBITED_VALUE_COMBINATION_WITH_BETWEEN_OPERATOR', index=44, number=21, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='STRING_NOT_TERMINATED', index=45, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TOO_MANY_SEGMENTS', index=46, number=34, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNEXPECTED_END_OF_QUERY', index=47, number=9, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNEXPECTED_FROM_CLAUSE', index=48, number=47, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNRECOGNIZED_FIELD', index=49, number=32, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='UNEXPECTED_INPUT', index=50, number=11, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='REQUESTED_METRICS_FOR_MANAGER', index=51, number=59, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=140, + serialized_end=1792, +) +_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=1792, +) + +_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/query_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/query_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/query_error_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/errors/quota_error_pb2.py b/google/ads/google_ads/v1/proto/errors/quota_error_pb2.py new file mode 100644 index 000000000..25a90f02d --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/quota_error_pb2.py @@ -0,0 +1,104 @@ +# 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/quota_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/quota_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/quota_error_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/errors/range_error_pb2.py b/google/ads/google_ads/v1/proto/errors/range_error_pb2.py new file mode 100644 index 000000000..5e5694fa5 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/range_error_pb2.py @@ -0,0 +1,100 @@ +# 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/range_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/range_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/range_error_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/errors/recommendation_error_pb2.py b/google/ads/google_ads/v1/proto/errors/recommendation_error_pb2.py new file mode 100644 index 000000000..aa1d3066f --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/recommendation_error_pb2.py @@ -0,0 +1,145 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/errors/recommendation_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/recommendation_error.proto', + package='google.ads.googleads.v1.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\"\xbf\x03\n\x17RecommendationErrorEnum\"\xa3\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\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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_RECOMMENDATIONERRORENUM_RECOMMENDATIONERROR = _descriptor.EnumDescriptor( + name='RecommendationError', + full_name='google.ads.googleads.v1.errors.RecommendationErrorEnum.RecommendationError', + 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='BUDGET_AMOUNT_TOO_SMALL', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='BUDGET_AMOUNT_TOO_LARGE', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_BUDGET_AMOUNT', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='POLICY_ERROR', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_BID_AMOUNT', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ADGROUP_KEYWORD_LIMIT', index=7, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='RECOMMENDATION_ALREADY_APPLIED', index=8, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='RECOMMENDATION_INVALIDATED', index=9, number=9, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='TOO_MANY_OPERATIONS', index=10, number=10, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NO_OPERATIONS', index=11, number=11, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DIFFERENT_TYPES_NOT_SUPPORTED', index=12, number=12, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DUPLICATE_RESOURCE_NAME', index=13, number=13, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='RECOMMENDATION_ALREADY_DISMISSED', index=14, number=14, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=158, + serialized_end=577, +) +_sym_db.RegisterEnumDescriptor(_RECOMMENDATIONERRORENUM_RECOMMENDATIONERROR) + + +_RECOMMENDATIONERRORENUM = _descriptor.Descriptor( + name='RecommendationErrorEnum', + full_name='google.ads.googleads.v1.errors.RecommendationErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _RECOMMENDATIONERRORENUM_RECOMMENDATIONERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=130, + serialized_end=577, +) + +_RECOMMENDATIONERRORENUM_RECOMMENDATIONERROR.containing_type = _RECOMMENDATIONERRORENUM +DESCRIPTOR.message_types_by_name['RecommendationErrorEnum'] = _RECOMMENDATIONERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +RecommendationErrorEnum = _reflection.GeneratedProtocolMessageType('RecommendationErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _RECOMMENDATIONERRORENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(RecommendationErrorEnum) + + +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/v1/proto/errors/recommendation_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/recommendation_error_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/errors/region_code_error_pb2.py b/google/ads/google_ads/v1/proto/errors/region_code_error_pb2.py new file mode 100644 index 000000000..ab184d172 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/region_code_error_pb2.py @@ -0,0 +1,96 @@ +# 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/setting_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/setting_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/setting_error_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/errors/shared_criterion_error_pb2.py b/google/ads/google_ads/v1/proto/errors/shared_criterion_error_pb2.py new file mode 100644 index 000000000..4b94447c5 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/shared_criterion_error_pb2.py @@ -0,0 +1,96 @@ +# 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/shared_criterion_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/shared_criterion_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/shared_criterion_error_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/errors/shared_set_error_pb2.py b/google/ads/google_ads/v1/proto/errors/shared_set_error_pb2.py new file mode 100644 index 000000000..224beb423 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/shared_set_error_pb2.py @@ -0,0 +1,108 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/errors/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/shared_set_error.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_SHAREDSETERRORENUM_SHAREDSETERROR = _descriptor.EnumDescriptor( + name='SharedSetError', + full_name='google.ads.googleads.v1.errors.SharedSetErrorEnum.SharedSetError', + 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_CANNOT_CREATE_SHARED_SET_OF_THIS_TYPE', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DUPLICATE_NAME', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SHARED_SET_REMOVED', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='SHARED_SET_IN_USE', index=5, number=5, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=149, + serialized_end=314, +) +_sym_db.RegisterEnumDescriptor(_SHAREDSETERRORENUM_SHAREDSETERROR) + + +_SHAREDSETERRORENUM = _descriptor.Descriptor( + name='SharedSetErrorEnum', + full_name='google.ads.googleads.v1.errors.SharedSetErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _SHAREDSETERRORENUM_SHAREDSETERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=126, + serialized_end=314, +) + +_SHAREDSETERRORENUM_SHAREDSETERROR.containing_type = _SHAREDSETERRORENUM +DESCRIPTOR.message_types_by_name['SharedSetErrorEnum'] = _SHAREDSETERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +SharedSetErrorEnum = _reflection.GeneratedProtocolMessageType('SharedSetErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _SHAREDSETERRORENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(SharedSetErrorEnum) + + +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/v1/proto/errors/shared_set_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/shared_set_error_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/errors/string_format_error_pb2.py b/google/ads/google_ads/v1/proto/errors/string_format_error_pb2.py new file mode 100644 index 000000000..afbdde8c1 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/string_format_error_pb2.py @@ -0,0 +1,100 @@ +# 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_format_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/string_format_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/string_format_error_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/errors/string_length_error_pb2.py b/google/ads/google_ads/v1/proto/errors/string_length_error_pb2.py new file mode 100644 index 000000000..09502d234 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/string_length_error_pb2.py @@ -0,0 +1,100 @@ +# 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/string_length_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/string_length_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/string_length_error_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/errors/url_field_error_pb2.py b/google/ads/google_ads/v1/proto/errors/url_field_error_pb2.py new file mode 100644 index 000000000..1b7c5ac1d --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/url_field_error_pb2.py @@ -0,0 +1,296 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/errors/url_field_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/url_field_error.proto', + package='google.ads.googleads.v1.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\"\x95\x0e\n\x11UrlFieldErrorEnum\"\xff\r\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\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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_URLFIELDERRORENUM_URLFIELDERROR = _descriptor.EnumDescriptor( + name='UrlFieldError', + full_name='google.ads.googleads.v1.errors.UrlFieldErrorEnum.UrlFieldError', + 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_TRACKING_URL_TEMPLATE', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_TAG_IN_TRACKING_URL_TEMPLATE', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_TRACKING_URL_TEMPLATE_TAG', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_PROTOCOL_IN_TRACKING_URL_TEMPLATE', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_PROTOCOL_IN_TRACKING_URL_TEMPLATE', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MALFORMED_TRACKING_URL_TEMPLATE', index=7, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_HOST_IN_TRACKING_URL_TEMPLATE', index=8, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_TLD_IN_TRACKING_URL_TEMPLATE', index=9, number=9, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='REDUNDANT_NESTED_TRACKING_URL_TEMPLATE_TAG', index=10, number=10, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_FINAL_URL', index=11, number=11, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_TAG_IN_FINAL_URL', index=12, number=12, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='REDUNDANT_NESTED_FINAL_URL_TAG', index=13, number=13, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_PROTOCOL_IN_FINAL_URL', index=14, number=14, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_PROTOCOL_IN_FINAL_URL', index=15, number=15, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MALFORMED_FINAL_URL', index=16, number=16, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_HOST_IN_FINAL_URL', index=17, number=17, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_TLD_IN_FINAL_URL', index=18, number=18, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_FINAL_MOBILE_URL', index=19, number=19, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_TAG_IN_FINAL_MOBILE_URL', index=20, number=20, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='REDUNDANT_NESTED_FINAL_MOBILE_URL_TAG', index=21, number=21, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_PROTOCOL_IN_FINAL_MOBILE_URL', index=22, number=22, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_PROTOCOL_IN_FINAL_MOBILE_URL', index=23, number=23, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MALFORMED_FINAL_MOBILE_URL', index=24, number=24, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_HOST_IN_FINAL_MOBILE_URL', index=25, number=25, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_TLD_IN_FINAL_MOBILE_URL', index=26, number=26, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_FINAL_APP_URL', index=27, number=27, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_TAG_IN_FINAL_APP_URL', index=28, number=28, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='REDUNDANT_NESTED_FINAL_APP_URL_TAG', index=29, number=29, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MULTIPLE_APP_URLS_FOR_OSTYPE', index=30, number=30, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_OSTYPE', index=31, number=31, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_PROTOCOL_FOR_APP_URL', index=32, number=32, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_PACKAGE_ID_FOR_APP_URL', index=33, number=33, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='URL_CUSTOM_PARAMETERS_COUNT_EXCEEDS_LIMIT', index=34, number=34, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_CHARACTERS_IN_URL_CUSTOM_PARAMETER_KEY', index=35, number=39, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_CHARACTERS_IN_URL_CUSTOM_PARAMETER_VALUE', index=36, number=40, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_TAG_IN_URL_CUSTOM_PARAMETER_VALUE', index=37, number=41, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='REDUNDANT_NESTED_URL_CUSTOM_PARAMETER_TAG', index=38, number=42, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_PROTOCOL', index=39, number=43, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_PROTOCOL', index=40, number=52, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_URL', index=41, number=44, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DESTINATION_URL_DEPRECATED', index=42, number=45, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_TAG_IN_URL', index=43, number=46, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_URL_TAG', index=44, number=47, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DUPLICATE_URL_ID', index=45, number=48, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_URL_ID', index=46, number=49, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='FINAL_URL_SUFFIX_MALFORMED', index=47, number=50, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_TAG_IN_FINAL_URL_SUFFIX', index=48, number=51, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_TOP_LEVEL_DOMAIN', index=49, number=53, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MALFORMED_TOP_LEVEL_DOMAIN', index=50, number=54, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MALFORMED_URL', index=51, number=55, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MISSING_HOST', index=52, number=56, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=147, + serialized_end=1938, +) +_sym_db.RegisterEnumDescriptor(_URLFIELDERRORENUM_URLFIELDERROR) + + +_URLFIELDERRORENUM = _descriptor.Descriptor( + name='UrlFieldErrorEnum', + full_name='google.ads.googleads.v1.errors.UrlFieldErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _URLFIELDERRORENUM_URLFIELDERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=125, + serialized_end=1938, +) + +_URLFIELDERRORENUM_URLFIELDERROR.containing_type = _URLFIELDERRORENUM +DESCRIPTOR.message_types_by_name['UrlFieldErrorEnum'] = _URLFIELDERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +UrlFieldErrorEnum = _reflection.GeneratedProtocolMessageType('UrlFieldErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _URLFIELDERRORENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(UrlFieldErrorEnum) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/ads/google_ads/v1/proto/errors/url_field_error_pb2_grpc.py b/google/ads/google_ads/v1/proto/errors/url_field_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/url_field_error_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/errors/user_list_error_pb2.py b/google/ads/google_ads/v1/proto/errors/user_list_error_pb2.py new file mode 100644 index 000000000..cf9c18c55 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/user_list_error_pb2.py @@ -0,0 +1,196 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/errors/user_list_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/user_list_error.proto', + package='google.ads.googleads.v1.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') + , + dependencies=[google_dot_api_dot_annotations__pb2.DESCRIPTOR,]) + + + +_USERLISTERRORENUM_USERLISTERROR = _descriptor.EnumDescriptor( + name='UserListError', + full_name='google.ads.googleads.v1.errors.UserListErrorEnum.UserListError', + 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='EXTERNAL_REMARKETING_USER_LIST_MUTATE_NOT_SUPPORTED', index=2, number=2, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CONCRETE_TYPE_REQUIRED', index=3, number=3, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CONVERSION_TYPE_ID_REQUIRED', index=4, number=4, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='DUPLICATE_CONVERSION_TYPES', index=5, number=5, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_CONVERSION_TYPE', index=6, number=6, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_DESCRIPTION', index=7, number=7, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_NAME', index=8, number=8, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_TYPE', index=9, number=9, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CAN_NOT_ADD_LOGICAL_LIST_AS_LOGICAL_LIST_OPERAND', index=10, number=10, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_USER_LIST_LOGICAL_RULE_OPERAND', index=11, number=11, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NAME_ALREADY_USED', index=12, number=12, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='NEW_CONVERSION_TYPE_NAME_REQUIRED', index=13, number=13, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CONVERSION_TYPE_NAME_ALREADY_USED', index=14, number=14, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='OWNERSHIP_REQUIRED_FOR_SET', index=15, number=15, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='USER_LIST_MUTATE_NOT_SUPPORTED', index=16, number=16, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_RULE', index=17, number=17, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='INVALID_DATE_RANGE', index=18, number=27, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CAN_NOT_MUTATE_SENSITIVE_USERLIST', index=19, number=28, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='MAX_NUM_RULEBASED_USERLISTS', index=20, number=29, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CANNOT_MODIFY_BILLABLE_RECORD_COUNT', index=21, number=30, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='APP_ID_NOT_SET', index=22, number=31, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='USERLIST_NAME_IS_RESERVED_FOR_SYSTEM_LIST', index=23, number=32, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='ADVERTISER_NOT_WHITELISTED_FOR_USING_UPLOADED_DATA', index=24, number=33, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='RULE_TYPE_IS_NOT_SUPPORTED', index=25, number=34, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CAN_NOT_ADD_A_SIMILAR_USERLIST_AS_LOGICAL_LIST_OPERAND', index=26, number=35, + serialized_options=None, + type=None), + _descriptor.EnumValueDescriptor( + name='CAN_NOT_MIX_CRM_BASED_IN_LOGICAL_LIST_WITH_OTHER_LISTS', index=27, number=36, + serialized_options=None, + type=None), + ], + containing_type=None, + serialized_options=None, + serialized_start=147, + serialized_end=1129, +) +_sym_db.RegisterEnumDescriptor(_USERLISTERRORENUM_USERLISTERROR) + + +_USERLISTERRORENUM = _descriptor.Descriptor( + name='UserListErrorEnum', + full_name='google.ads.googleads.v1.errors.UserListErrorEnum', + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + _USERLISTERRORENUM_USERLISTERROR, + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=125, + serialized_end=1129, +) + +_USERLISTERRORENUM_USERLISTERROR.containing_type = _USERLISTERRORENUM +DESCRIPTOR.message_types_by_name['UserListErrorEnum'] = _USERLISTERRORENUM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + +UserListErrorEnum = _reflection.GeneratedProtocolMessageType('UserListErrorEnum', (_message.Message,), dict( + DESCRIPTOR = _USERLISTERRORENUM, + __module__ = 'google.ads.googleads_v1.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) + )) +_sym_db.RegisterMessage(UserListErrorEnum) + + +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/v1/proto/errors/user_list_error_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/errors/user_list_error_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/resources/__init__.py b/google/ads/google_ads/v1/proto/resources/__init__.py new file mode 100644 index 000000000..e69de29bb 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 new file mode 100644 index 000000000..672f846e1 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/account_budget_pb2.py @@ -0,0 +1,584 @@ +# 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_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/account_budget_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/account_budget_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/resources/account_budget_proposal_pb2.py b/google/ads/google_ads/v1/proto/resources/account_budget_proposal_pb2.py new file mode 100644 index 000000000..c883e21c0 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/account_budget_proposal_pb2.py @@ -0,0 +1,376 @@ +# 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/account_budget_proposal_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/account_budget_proposal_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/account_budget_proposal_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/resources/ad_group_ad_label_pb2.py b/google/ads/google_ads/v1/proto/resources/ad_group_ad_label_pb2.py new file mode 100644 index 000000000..0b932466d --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/ad_group_ad_label_pb2.py @@ -0,0 +1,103 @@ +# 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_label_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/ad_group_ad_label_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/ad_group_ad_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/v1/proto/resources/ad_group_ad_pb2.py b/google/ads/google_ads/v1/proto/resources/ad_group_ad_pb2.py new file mode 100644 index 000000000..550ca887d --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/ad_group_ad_pb2.py @@ -0,0 +1,208 @@ +# 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_ad_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/ad_group_ad_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/ad_group_ad_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/resources/ad_group_audience_view_pb2.py b/google/ads/google_ads/v1/proto/resources/ad_group_audience_view_pb2.py new file mode 100644 index 000000000..3bcc0f691 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/ad_group_audience_view_pb2.py @@ -0,0 +1,85 @@ +# 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_audience_view_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/ad_group_audience_view_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/ad_group_audience_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/v1/proto/resources/ad_group_bid_modifier_pb2.py b/google/ads/google_ads/v1/proto/resources/ad_group_bid_modifier_pb2.py new file mode 100644 index 000000000..9efbfb7f6 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/ad_group_bid_modifier_pb2.py @@ -0,0 +1,227 @@ +# 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_bid_modifier_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/ad_group_bid_modifier_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/ad_group_bid_modifier_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/resources/ad_group_criterion_label_pb2.py b/google/ads/google_ads/v1/proto/resources/ad_group_criterion_label_pb2.py new file mode 100644 index 000000000..24b145304 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/ad_group_criterion_label_pb2.py @@ -0,0 +1,104 @@ +# 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_label_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/ad_group_criterion_label_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/ad_group_criterion_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/v1/proto/resources/ad_group_criterion_pb2.py b/google/ads/google_ads/v1/proto/resources/ad_group_criterion_pb2.py new file mode 100644 index 000000000..d3954b8aa --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/ad_group_criterion_pb2.py @@ -0,0 +1,761 @@ +# 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_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\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\"\xc1\x1e\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\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\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__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=3746, + serialized_end=4129, +) + +_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=4132, + serialized_end=4496, +) + +_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='bid_modifier', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.bid_modifier', index=8, + 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=9, + 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=10, + 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=11, + 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=12, + 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=13, + 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=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='effective_cpv_bid_micros', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.effective_cpv_bid_micros', index=15, + 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=16, + 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=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='effective_cpm_bid_source', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.effective_cpm_bid_source', index=18, + 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=19, + 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=20, + 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=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='final_urls', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.final_urls', index=22, + 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=23, + 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=24, + 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=25, + 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=26, + 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=27, + 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=28, + 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=29, + 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='listing_group', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.listing_group', 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='age_range', full_name='google.ads.googleads.v1.resources.AdGroupCriterion.age_range', index=31, + 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=32, + 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=33, + 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=34, + 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=35, + 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=36, + 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=37, + 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=38, + 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=39, + 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=40, + 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=41, + 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=42, + 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=43, + 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=604, + serialized_end=4509, +) + +_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['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['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['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. + 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. + 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_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/ad_group_criterion_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/ad_group_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/v1/proto/resources/ad_group_extension_setting_pb2.py b/google/ads/google_ads/v1/proto/resources/ad_group_extension_setting_pb2.py new file mode 100644 index 000000000..d3b5972ae --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/ad_group_extension_setting_pb2.py @@ -0,0 +1,131 @@ +# 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_extension_setting_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/ad_group_extension_setting_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/ad_group_extension_setting_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/resources/ad_group_feed_pb2.py b/google/ads/google_ads/v1/proto/resources/ad_group_feed_pb2.py new file mode 100644 index 000000000..52faf6f67 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/ad_group_feed_pb2.py @@ -0,0 +1,139 @@ +# 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;\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='tracking_url_template', full_name='google.ads.googleads.v1.resources.AdGroup.tracking_url_template', 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=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='url_custom_parameters', full_name='google.ads.googleads.v1.resources.AdGroup.url_custom_parameters', index=7, + 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=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=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='cpc_bid_micros', full_name='google.ads.googleads.v1.resources.AdGroup.cpc_bid_micros', 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='cpm_bid_micros', full_name='google.ads.googleads.v1.resources.AdGroup.cpm_bid_micros', 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='target_cpa_micros', full_name='google.ads.googleads.v1.resources.AdGroup.target_cpa_micros', index=11, + 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=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='target_cpm_micros', full_name='google.ads.googleads.v1.resources.AdGroup.target_cpm_micros', index=13, + 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=14, + 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=15, + 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=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='display_custom_bid_dimension', full_name='google.ads.googleads.v1.resources.AdGroup.display_custom_bid_dimension', index=17, + 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=18, + 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=19, + 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=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='effective_target_cpa_source', full_name='google.ads.googleads.v1.resources.AdGroup.effective_target_cpa_source', index=21, + 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=22, + 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=23, + 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=2288, +) + +_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['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. + 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_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/ad_group_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/ad_group_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/resources/ad_parameter_pb2.py b/google/ads/google_ads/v1/proto/resources/ad_parameter_pb2.py new file mode 100644 index 000000000..7ad3a1b51 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/ad_parameter_pb2.py @@ -0,0 +1,129 @@ +# -*- 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 and 200£ are 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_parameter_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/ad_parameter_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/ad_parameter_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/resources/ad_pb2.py b/google/ads/google_ads/v1/proto/resources/ad_pb2.py new file mode 100644 index 000000000..4903b9cee --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/ad_pb2.py @@ -0,0 +1,382 @@ +# 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 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\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\"\xc7\r\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\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\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_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_mobile_urls', full_name='google.ads.googleads.v1.resources.Ad.final_mobile_urls', index=2, + 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=3, + 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=4, + 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=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='type', full_name='google.ads.googleads.v1.resources.Ad.type', index=6, + 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=7, + 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=8, + 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=9, + 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=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='system_managed_resource_source', full_name='google.ads.googleads.v1.resources.Ad.system_managed_resource_source', index=11, + 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=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='expanded_text_ad', full_name='google.ads.googleads.v1.resources.Ad.expanded_text_ad', 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='call_only_ad', full_name='google.ads.googleads.v1.resources.Ad.call_only_ad', 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='expanded_dynamic_search_ad', full_name='google.ads.googleads.v1.resources.Ad.expanded_dynamic_search_ad', index=15, + 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=16, + 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=17, + 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=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='gmail_ad', full_name='google.ads.googleads.v1.resources.Ad.gmail_ad', index=19, + 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=20, + 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=21, + 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=22, + 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=23, + 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), + ], + 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=501, + serialized_end=2236, +) + +_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_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.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'] +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_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. + """, + # @@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_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/ad_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/ad_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/resources/ad_schedule_view_pb2.py b/google/ads/google_ads/v1/proto/resources/ad_schedule_view_pb2.py new file mode 100644 index 000000000..d96131be9 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/ad_schedule_view_pb2.py @@ -0,0 +1,83 @@ +# 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/ad_schedule_view_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/ad_schedule_view_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/ad_schedule_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/v1/proto/resources/age_range_view_pb2.py b/google/ads/google_ads/v1/proto/resources/age_range_view_pb2.py new file mode 100644 index 000000000..8f8e37e2d --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/age_range_view_pb2.py @@ -0,0 +1,82 @@ +# 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/bidding_strategy_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/bidding_strategy_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/bidding_strategy_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/resources/billing_setup_pb2.py b/google/ads/google_ads/v1/proto/resources/billing_setup_pb2.py new file mode 100644 index 000000000..e7af020b2 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/billing_setup_pb2.py @@ -0,0 +1,304 @@ +# 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/billing_setup_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/billing_setup_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/billing_setup_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/resources/campaign_audience_view_pb2.py b/google/ads/google_ads/v1/proto/resources/campaign_audience_view_pb2.py new file mode 100644 index 000000000..bc1e57ddd --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/campaign_audience_view_pb2.py @@ -0,0 +1,86 @@ +# 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_audience_view_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/campaign_audience_view_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/campaign_audience_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/v1/proto/resources/campaign_bid_modifier_pb2.py b/google/ads/google_ads/v1/proto/resources/campaign_bid_modifier_pb2.py new file mode 100644 index 000000000..e4c94c92f --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/campaign_bid_modifier_pb2.py @@ -0,0 +1,134 @@ +# 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_bid_modifier_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/campaign_bid_modifier_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/campaign_bid_modifier_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/resources/campaign_budget_pb2.py b/google/ads/google_ads/v1/proto/resources/campaign_budget_pb2.py new file mode 100644 index 000000000..f20a156ba --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/campaign_budget_pb2.py @@ -0,0 +1,273 @@ +# 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.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\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xc7\x08\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.Int64ValueB\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_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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=343, + serialized_end=1438, +) + +_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 +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. + 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. + """, + # @@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_budget_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/campaign_budget_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/campaign_budget_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/resources/campaign_criterion_pb2.py b/google/ads/google_ads/v1/proto/resources/campaign_criterion_pb2.py new file mode 100644 index 000000000..003b9fd92 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/campaign_criterion_pb2.py @@ -0,0 +1,456 @@ +# 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 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\x38google/ads/googleads_v1/proto/enums/criterion_type.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xef\x0f\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>\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\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\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_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='keyword', full_name='google.ads.googleads.v1.resources.CampaignCriterion.keyword', 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='placement', full_name='google.ads.googleads.v1.resources.CampaignCriterion.placement', 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=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='mobile_app_category', full_name='google.ads.googleads.v1.resources.CampaignCriterion.mobile_app_category', 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=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='location', full_name='google.ads.googleads.v1.resources.CampaignCriterion.location', 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='device', full_name='google.ads.googleads.v1.resources.CampaignCriterion.device', 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_schedule', full_name='google.ads.googleads.v1.resources.CampaignCriterion.ad_schedule', 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='age_range', full_name='google.ads.googleads.v1.resources.CampaignCriterion.age_range', index=12, + 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=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='income_range', full_name='google.ads.googleads.v1.resources.CampaignCriterion.income_range', 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='parental_status', full_name='google.ads.googleads.v1.resources.CampaignCriterion.parental_status', 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='user_list', full_name='google.ads.googleads.v1.resources.CampaignCriterion.user_list', index=16, + 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=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=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='youtube_channel', full_name='google.ads.googleads.v1.resources.CampaignCriterion.youtube_channel', index=18, + 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=19, + 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=20, + 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=21, + 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=22, + 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=23, + 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=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='carrier', full_name='google.ads.googleads.v1.resources.CampaignCriterion.carrier', 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='user_interest', full_name='google.ads.googleads.v1.resources.CampaignCriterion.user_interest', 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='webpage', full_name='google.ads.googleads.v1.resources.CampaignCriterion.webpage', 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='operating_system_version', full_name='google.ads.googleads.v1.resources.CampaignCriterion.operating_system_version', index=28, + 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=29, + 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), + ], + 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=277, + serialized_end=2308, +) + +_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['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['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.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['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'] +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. + criterion: + The campaign criterion. Exactly one must be set. + keyword: + Keyword. + placement: + Placement. + mobile_app_category: + Mobile app category. + 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. + """, + # @@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_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/campaign_criterion_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/campaign_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/v1/proto/resources/campaign_criterion_simulation_pb2.py b/google/ads/google_ads/v1/proto/resources/campaign_criterion_simulation_pb2.py new file mode 100644 index 000000000..4db6c4696 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/campaign_criterion_simulation_pb2.py @@ -0,0 +1,168 @@ +# 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. + + + 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_criterion_simulation_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/campaign_criterion_simulation_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/campaign_criterion_simulation_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/resources/campaign_extension_setting_pb2.py b/google/ads/google_ads/v1/proto/resources/campaign_extension_setting_pb2.py new file mode 100644 index 000000000..0c41f8eda --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/campaign_extension_setting_pb2.py @@ -0,0 +1,131 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/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.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/campaign_extension_setting.proto', + package='google.ads.googleads.v1.resources', + syntax='proto3', + serialized_options=_b('\n%com.google.ads.googleads.v1.resourcesB\035CampaignExtensionSettingProtoP\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/campaign_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\"\xd7\x02\n\x18\x43\x61mpaignExtensionSetting\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\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_extension_setting_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/campaign_extension_setting_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/campaign_extension_setting_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/resources/campaign_feed_pb2.py b/google/ads/google_ads/v1/proto/resources/campaign_feed_pb2.py new file mode 100644 index 000000000..8c5793f15 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/campaign_feed_pb2.py @@ -0,0 +1,139 @@ +# 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\x1agoogle/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/carrier_constant_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/carrier_constant_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/carrier_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/v1/proto/resources/change_status_pb2.py b/google/ads/google_ads/v1/proto/resources/change_status_pb2.py new file mode 100644 index 000000000..27a085736 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/change_status_pb2.py @@ -0,0 +1,218 @@ +# 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/change_status_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/change_status_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/change_status_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/resources/click_view_pb2.py b/google/ads/google_ads/v1/proto/resources/click_view_pb2.py new file mode 100644 index 000000000..92747b6ac --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/click_view_pb2.py @@ -0,0 +1,128 @@ +# 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/click_view_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/click_view_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/click_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/v1/proto/resources/conversion_action_pb2.py b/google/ads/google_ads/v1/proto/resources/conversion_action_pb2.py new file mode 100644 index 000000000..5b023523e --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/conversion_action_pb2.py @@ -0,0 +1,387 @@ +# 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/conversion_action_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/conversion_action_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/conversion_action_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/resources/custom_interest_pb2.py b/google/ads/google_ads/v1/proto/resources/custom_interest_pb2.py new file mode 100644 index 000000000..462ed7efc --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/custom_interest_pb2.py @@ -0,0 +1,215 @@ +# 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/custom_interest_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/custom_interest_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/custom_interest_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/resources/customer_client_link_pb2.py b/google/ads/google_ads/v1/proto/resources/customer_client_link_pb2.py new file mode 100644 index 000000000..469292d98 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/customer_client_link_pb2.py @@ -0,0 +1,125 @@ +# 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_link_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/customer_client_link_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/customer_client_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/v1/proto/resources/customer_client_pb2.py b/google/ads/google_ads/v1/proto/resources/customer_client_pb2.py new file mode 100644 index 000000000..670504246 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/customer_client_pb2.py @@ -0,0 +1,118 @@ +# 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_client_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/customer_client_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/customer_client_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/resources/customer_extension_setting_pb2.py b/google/ads/google_ads/v1/proto/resources/customer_extension_setting_pb2.py new file mode 100644 index 000000000..d6a7774bb --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/customer_extension_setting_pb2.py @@ -0,0 +1,118 @@ +# 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_extension_setting_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/customer_extension_setting_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/customer_extension_setting_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/resources/customer_feed_pb2.py b/google/ads/google_ads/v1/proto/resources/customer_feed_pb2.py new file mode 100644 index 000000000..d0a1d6512 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/customer_feed_pb2.py @@ -0,0 +1,129 @@ +# 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_negative_criterion_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/customer_negative_criterion_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/customer_negative_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/v1/proto/resources/customer_pb2.py b/google/ads/google_ads/v1/proto/resources/customer_pb2.py new file mode 100644 index 000000000..65cff1d5a --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/customer_pb2.py @@ -0,0 +1,403 @@ +# 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.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\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xbe\x06\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\"\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_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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=156, + serialized_end=986, +) + + +_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=989, + serialized_end=1204, +) + + +_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=1207, + serialized_end=1370, +) + + +_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=1372, + serialized_end=1454, +) + +_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 +_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. + """, + # @@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/customer_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/customer_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/customer_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/resources/detail_placement_view_pb2.py b/google/ads/google_ads/v1/proto/resources/detail_placement_view_pb2.py new file mode 100644 index 000000000..0daff6338 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/detail_placement_view_pb2.py @@ -0,0 +1,141 @@ +# 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::Services'), + 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\x84\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::Servicesb\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/detail_placement_view_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/detail_placement_view_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/detail_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/v1/proto/resources/display_keyword_view_pb2.py b/google/ads/google_ads/v1/proto/resources/display_keyword_view_pb2.py new file mode 100644 index 000000000..edbd7948e --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/display_keyword_view_pb2.py @@ -0,0 +1,82 @@ +# 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/display_keyword_view_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/display_keyword_view_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/display_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/v1/proto/resources/domain_category_pb2.py b/google/ads/google_ads/v1/proto/resources/domain_category_pb2.py new file mode 100644 index 000000000..0c616d800 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/domain_category_pb2.py @@ -0,0 +1,176 @@ +# 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/domain_category_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/domain_category_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/domain_category_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/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 new file mode 100644 index 000000000..b038b4985 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/dynamic_search_ads_search_term_view_pb2.py @@ -0,0 +1,128 @@ +# 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/dynamic_search_ads_search_term_view_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/dynamic_search_ads_search_term_view_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/dynamic_search_ads_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/v1/proto/resources/extension_feed_item_pb2.py b/google/ads/google_ads/v1/proto/resources/extension_feed_item_pb2.py new file mode 100644 index 000000000..b44933eec --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/extension_feed_item_pb2.py @@ -0,0 +1,228 @@ +# 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 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 feed_item_status_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_feed__item__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/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\x35google/ads/googleads_v1/proto/common/extensions.proto\x1a:google/ads/googleads_v1/proto/enums/feed_item_status.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/api/annotations.proto\"\xf7\x06\n\x11\x45xtensionFeedItem\x12\x15\n\rresource_name\x18\x01 \x01(\t\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\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\x42\x0b\n\textensionB\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_extensions__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v1_dot_proto_dot_enums_dot_feed__item__status__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='start_date_time', full_name='google.ads.googleads.v1.resources.ExtensionFeedItem.start_date_time', 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='end_date_time', full_name='google.ads.googleads.v1.resources.ExtensionFeedItem.end_date_time', 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='status', full_name='google.ads.googleads.v1.resources.ExtensionFeedItem.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='sitelink_feed_item', full_name='google.ads.googleads.v1.resources.ExtensionFeedItem.sitelink_feed_item', 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='structured_snippet_feed_item', full_name='google.ads.googleads.v1.resources.ExtensionFeedItem.structured_snippet_feed_item', 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='app_feed_item', full_name='google.ads.googleads.v1.resources.ExtensionFeedItem.app_feed_item', 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_feed_item', full_name='google.ads.googleads.v1.resources.ExtensionFeedItem.call_feed_item', 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='callout_feed_item', full_name='google.ads.googleads.v1.resources.ExtensionFeedItem.callout_feed_item', 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='text_message_feed_item', full_name='google.ads.googleads.v1.resources.ExtensionFeedItem.text_message_feed_item', 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='price_feed_item', full_name='google.ads.googleads.v1.resources.ExtensionFeedItem.price_feed_item', 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='promotion_feed_item', full_name='google.ads.googleads.v1.resources.ExtensionFeedItem.promotion_feed_item', 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='extension', full_name='google.ads.googleads.v1.resources.ExtensionFeedItem.extension', + index=0, containing_type=None, fields=[]), + ], + serialized_start=282, + serialized_end=1169, +) + +_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['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.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'] +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}`` + 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" + 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. + """, + # @@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/extension_feed_item_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/extension_feed_item_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/extension_feed_item_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/resources/feed_item_pb2.py b/google/ads/google_ads/v1/proto/resources/feed_item_pb2.py new file mode 100644 index 000000000..54825218e --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/feed_item_pb2.py @@ -0,0 +1,574 @@ +# 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_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/feed_item_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/feed_item_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/resources/feed_item_target_pb2.py b/google/ads/google_ads/v1/proto/resources/feed_item_target_pb2.py new file mode 100644 index 000000000..fe15d5e33 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/feed_item_target_pb2.py @@ -0,0 +1,201 @@ +# 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 entity. This field is read-only. + target: + The targeted entity. + 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_item_target_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/feed_item_target_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/feed_item_target_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/resources/feed_mapping_pb2.py b/google/ads/google_ads/v1/proto/resources/feed_mapping_pb2.py new file mode 100644 index 000000000..b4808107b --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/feed_mapping_pb2.py @@ -0,0 +1,518 @@ +# 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_mapping_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/feed_mapping_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/feed_mapping_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/resources/feed_pb2.py b/google/ads/google_ads/v1/proto/resources/feed_pb2.py new file mode 100644 index 000000000..bfdf24e90 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/feed_pb2.py @@ -0,0 +1,597 @@ +# 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_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/feed_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/feed_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/resources/feed_placeholder_view_pb2.py b/google/ads/google_ads/v1/proto/resources/feed_placeholder_view_pb2.py new file mode 100644 index 000000000..c12b06fe7 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/feed_placeholder_view_pb2.py @@ -0,0 +1,93 @@ +# 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/feed_placeholder_view_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/feed_placeholder_view_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/feed_placeholder_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/v1/proto/resources/gender_view_pb2.py b/google/ads/google_ads/v1/proto/resources/gender_view_pb2.py new file mode 100644 index 000000000..00c6d6420 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/gender_view_pb2.py @@ -0,0 +1,82 @@ +# 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/gender_view_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/gender_view_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/gender_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/v1/proto/resources/geo_target_constant_pb2.py b/google/ads/google_ads/v1/proto/resources/geo_target_constant_pb2.py new file mode 100644 index 000000000..d280107be --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/geo_target_constant_pb2.py @@ -0,0 +1,146 @@ +# 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/geo_target_constant_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/geo_target_constant_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/geo_target_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/v1/proto/resources/geographic_view_pb2.py b/google/ads/google_ads/v1/proto/resources/geographic_view_pb2.py new file mode 100644 index 000000000..f7eed678a --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/geographic_view_pb2.py @@ -0,0 +1,109 @@ +# 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/google_ads_field_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/google_ads_field_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/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/v1/proto/resources/group_placement_view_pb2.py b/google/ads/google_ads/v1/proto/resources/group_placement_view_pb2.py new file mode 100644 index 000000000..4434c4dd6 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/group_placement_view_pb2.py @@ -0,0 +1,128 @@ +# 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::Services'), + 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\x83\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::Servicesb\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/group_placement_view_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/group_placement_view_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/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/v1/proto/resources/hotel_group_view_pb2.py b/google/ads/google_ads/v1/proto/resources/hotel_group_view_pb2.py new file mode 100644 index 000000000..289e8b60e --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/hotel_group_view_pb2.py @@ -0,0 +1,82 @@ +# 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_group_view_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/hotel_group_view_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/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/v1/proto/resources/hotel_performance_view_pb2.py b/google/ads/google_ads/v1/proto/resources/hotel_performance_view_pb2.py new file mode 100644 index 000000000..42e2a53cd --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/hotel_performance_view_pb2.py @@ -0,0 +1,82 @@ +# 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/hotel_performance_view_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/hotel_performance_view_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/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/v1/proto/resources/keyword_plan_ad_group_pb2.py b/google/ads/google_ads/v1/proto/resources/keyword_plan_ad_group_pb2.py new file mode 100644 index 000000000..827b62dfe --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/keyword_plan_ad_group_pb2.py @@ -0,0 +1,127 @@ +# 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_ad_group_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/keyword_plan_ad_group_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/keyword_plan_ad_group_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/resources/keyword_plan_campaign_pb2.py b/google/ads/google_ads/v1/proto/resources/keyword_plan_campaign_pb2.py new file mode 100644 index 000000000..880e78abc --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/keyword_plan_campaign_pb2.py @@ -0,0 +1,208 @@ +# 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_campaign_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/keyword_plan_campaign_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/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/v1/proto/resources/keyword_plan_keyword_pb2.py b/google/ads/google_ads/v1/proto/resources/keyword_plan_keyword_pb2.py new file mode 100644 index 000000000..bec3ce6d3 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/keyword_plan_keyword_pb2.py @@ -0,0 +1,136 @@ +# 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/media_file_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/media_file_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/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/v1/proto/resources/merchant_center_link_pb2.py b/google/ads/google_ads/v1/proto/resources/merchant_center_link_pb2.py new file mode 100644 index 000000000..d889c8583 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/merchant_center_link_pb2.py @@ -0,0 +1,116 @@ +# 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/merchant_center_link_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/merchant_center_link_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/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/v1/proto/resources/mobile_app_category_constant_pb2.py b/google/ads/google_ads/v1/proto/resources/mobile_app_category_constant_pb2.py new file mode 100644 index 000000000..cbebbfd18 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/mobile_app_category_constant_pb2.py @@ -0,0 +1,103 @@ +# 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_app_category_constant_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/mobile_app_category_constant_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/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/v1/proto/resources/mobile_device_constant_pb2.py b/google/ads/google_ads/v1/proto/resources/mobile_device_constant_pb2.py new file mode 100644 index 000000000..d7f56fb57 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/mobile_device_constant_pb2.py @@ -0,0 +1,134 @@ +# 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\x1a\xcb\x01\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.DoubleValueB\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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=526, + serialized_end=729, +) + +_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), + ], + extensions=[ + ], + nested_types=[_MUTATEJOB_MUTATEJOBMETADATA, ], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=219, + serialized_end=729, +) + +_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.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 +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. + """, + # @@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. + """, + # @@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/mutate_job_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/mutate_job_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/mutate_job_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/resources/operating_system_version_constant_pb2.py b/google/ads/google_ads/v1/proto/resources/operating_system_version_constant_pb2.py new file mode 100644 index 000000000..eddb80e0e --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/operating_system_version_constant_pb2.py @@ -0,0 +1,140 @@ +# 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/payments_account_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/payments_account_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/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/v1/proto/resources/product_bidding_category_constant_pb2.py b/google/ads/google_ads/v1/proto/resources/product_bidding_category_constant_pb2.py new file mode 100644 index 000000000..09b2bb653 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/product_bidding_category_constant_pb2.py @@ -0,0 +1,159 @@ +# 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::Enums'), + 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\x8c\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::Enumsb\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_bidding_category_constant_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/product_bidding_category_constant_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/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/v1/proto/resources/product_group_view_pb2.py b/google/ads/google_ads/v1/proto/resources/product_group_view_pb2.py new file mode 100644 index 000000000..e26d33ef7 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/product_group_view_pb2.py @@ -0,0 +1,82 @@ +# 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/product_group_view_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/product_group_view_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/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/v1/proto/resources/recommendation_pb2.py b/google/ads/google_ads/v1/proto/resources/recommendation_pb2.py new file mode 100644 index 000000000..3e4b0c251 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/recommendation_pb2.py @@ -0,0 +1,1028 @@ +# 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.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/search_term_view_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/search_term_view_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/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/v1/proto/resources/shared_criterion_pb2.py b/google/ads/google_ads/v1/proto/resources/shared_criterion_pb2.py new file mode 100644 index 000000000..e0b8fe573 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/shared_criterion_pb2.py @@ -0,0 +1,185 @@ +# 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\"\xdc\x04\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\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), + ], + 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=879, +) + +_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.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'] +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. + """, + # @@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_criterion_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/shared_criterion_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/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/v1/proto/resources/shared_set_pb2.py b/google/ads/google_ads/v1/proto/resources/shared_set_pb2.py new file mode 100644 index 000000000..f13403e5f --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/shared_set_pb2.py @@ -0,0 +1,152 @@ +# 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 entity. 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/shared_set_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/shared_set_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/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/v1/proto/resources/shopping_performance_view_pb2.py b/google/ads/google_ads/v1/proto/resources/shopping_performance_view_pb2.py new file mode 100644 index 000000000..1db0c0262 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/shopping_performance_view_pb2.py @@ -0,0 +1,86 @@ +# 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/shopping_performance_view_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/shopping_performance_view_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/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/v1/proto/resources/topic_constant_pb2.py b/google/ads/google_ads/v1/proto/resources/topic_constant_pb2.py new file mode 100644 index 000000000..e0d19b179 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/topic_constant_pb2.py @@ -0,0 +1,118 @@ +# 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/user_list_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/user_list_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/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/v1/proto/resources/video_pb2.py b/google/ads/google_ads/v1/proto/resources/video_pb2.py new file mode 100644 index 000000000..edf948e41 --- /dev/null +++ b/google/ads/google_ads/v1/proto/resources/video_pb2.py @@ -0,0 +1,122 @@ +# 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/resources/video_pb2_grpc.py b/google/ads/google_ads/v1/proto/resources/video_pb2_grpc.py new file mode 100644 index 000000000..a89435267 --- /dev/null +++ b/google/ads/google_ads/v1/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/v1/proto/services/__init__.py new file mode 100644 index 000000000..e69de29bb 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 new file mode 100644 index 000000000..dedcdaea8 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/account_budget_proposal_service_pb2.py @@ -0,0 +1,371 @@ +# 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_proposal_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/account_budget_proposal_service_pb2_grpc.py new file mode 100644 index 000000000..249091a33 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/account_budget_proposal_service_pb2_grpc.py @@ -0,0 +1,89 @@ +# 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 + + +class AccountBudgetProposalServiceStub(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. + """ + + def __init__(self, channel): + """Constructor. + + Args: + 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, + ) + 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, + ) + + +class AccountBudgetProposalServiceServicer(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. + """ + + def GetAccountBudgetProposal(self, request, context): + """Returns an account-level budget proposal in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MutateAccountBudgetProposal(self, request, context): + """Creates, updates, or removes account budget proposals. Operation statuses + are returned. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +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, + ), + '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, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v1.services.AccountBudgetProposalService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) 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 new file mode 100644 index 000000000..5497a7e32 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/account_budget_service_pb2.py @@ -0,0 +1,106 @@ +# 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 new file mode 100644 index 000000000..c7bd7773c --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/ad_group_ad_label_service_pb2_grpc.py @@ -0,0 +1,65 @@ +# 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): + """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): + """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 new file mode 100644 index 000000000..62c29e034 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/ad_group_ad_service_pb2.py @@ -0,0 +1,413 @@ +# 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 new file mode 100644 index 000000000..fb4ac010a --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/ad_group_ad_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.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): + """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): + """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 new file mode 100644 index 000000000..e8809cec8 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/ad_group_audience_view_service_pb2.py @@ -0,0 +1,106 @@ +# 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 new file mode 100644 index 000000000..d8e8f888f --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/ad_group_audience_view_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.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): + """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): + """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 new file mode 100644 index 000000000..aec0238aa --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/ad_group_bid_modifier_service_pb2.py @@ -0,0 +1,405 @@ +# 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 new file mode 100644 index 000000000..ac10db86d --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/ad_group_bid_modifier_service_pb2_grpc.py @@ -0,0 +1,65 @@ +# 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): + """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): + """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 new file mode 100644 index 000000000..4a384eb08 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/ad_group_criterion_label_service_pb2.py @@ -0,0 +1,380 @@ +# 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_label_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/ad_group_criterion_label_service_pb2_grpc.py new file mode 100644 index 000000000..82ea7451a --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/ad_group_criterion_label_service_pb2_grpc.py @@ -0,0 +1,65 @@ +# 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 + + +class AdGroupCriterionLabelServiceStub(object): + """Service to manage labels on ad group criteria. + """ + + def __init__(self, channel): + """Constructor. + + Args: + 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, + ) + 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, + ) + + +class AdGroupCriterionLabelServiceServicer(object): + """Service to manage labels on ad group criteria. + """ + + def GetAdGroupCriterionLabel(self, request, context): + """Returns the requested ad group criterion label in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MutateAdGroupCriterionLabels(self, request, context): + """Creates and removes ad group criterion labels. + Operation statuses are returned. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +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, + ), + '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, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v1.services.AdGroupCriterionLabelService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) 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 new file mode 100644 index 000000000..41ebb32d9 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/ad_group_criterion_service_pb2.py @@ -0,0 +1,403 @@ +# 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.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@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\"\xf9\x01\n\x19\x41\x64GroupCriterionOperation\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.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_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=296, + serialized_end=347, +) + + +_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=350, + serialized_end=530, +) + + +_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='create', full_name='google.ads.googleads.v1.services.AdGroupCriterionOperation.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.AdGroupCriterionOperation.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.AdGroupCriterionOperation.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.AdGroupCriterionOperation.operation', + index=0, containing_type=None, fields=[]), + ], + serialized_start=533, + serialized_end=782, +) + + +_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=785, + serialized_end=948, +) + + +_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=950, + serialized_end=1003, +) + +_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['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. + 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=1006, + serialized_end=1449, + 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 new file mode 100644 index 000000000..8a614da41 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/ad_group_criterion_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.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): + """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): + """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_extension_setting_service_pb2.py b/google/ads/google_ads/v1/proto/services/ad_group_extension_setting_service_pb2.py new file mode 100644 index 000000000..2e06df204 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/ad_group_extension_setting_service_pb2.py @@ -0,0 +1,406 @@ +# 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/{customer_id}/adGroupExtensionSettings/{feed_id}`` + """, + # @@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_extension_setting_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/ad_group_extension_setting_service_pb2_grpc.py new file mode 100644 index 000000000..bcab8dddd --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/ad_group_extension_setting_service_pb2_grpc.py @@ -0,0 +1,65 @@ +# 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 + + +class AdGroupExtensionSettingServiceStub(object): + """Service to manage ad group extension settings. + """ + + def __init__(self, channel): + """Constructor. + + Args: + 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, + ) + 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, + ) + + +class AdGroupExtensionSettingServiceServicer(object): + """Service to manage ad group extension settings. + """ + + def GetAdGroupExtensionSetting(self, request, context): + """Returns the requested ad group extension setting in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MutateAdGroupExtensionSettings(self, request, context): + """Creates, updates, or removes ad group extension settings. Operation + statuses are returned. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +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, + ), + '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, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v1.services.AdGroupExtensionSettingService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) 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 new file mode 100644 index 000000000..6b1d85855 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/ad_group_feed_service_pb2.py @@ -0,0 +1,405 @@ +# 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 new file mode 100644 index 000000000..f535ac2ab --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/ad_group_feed_service_pb2_grpc.py @@ -0,0 +1,65 @@ +# 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): + """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): + """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 new file mode 100644 index 000000000..dd3fffaa8 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/ad_group_label_service_pb2.py @@ -0,0 +1,377 @@ +# 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 new file mode 100644 index 000000000..7bf4afb38 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/ad_schedule_view_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.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): + """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): + """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 new file mode 100644 index 000000000..a13b37df5 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/age_range_view_service_pb2.py @@ -0,0 +1,106 @@ +# 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 new file mode 100644 index 000000000..6a91cb7c9 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/bidding_strategy_service_pb2_grpc.py @@ -0,0 +1,65 @@ +# 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): + """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): + """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 new file mode 100644 index 000000000..d78c006e0 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/billing_setup_service_pb2.py @@ -0,0 +1,343 @@ +# 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 new file mode 100644 index 000000000..85ac17ece --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/billing_setup_service_pb2_grpc.py @@ -0,0 +1,80 @@ +# 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): + """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): + """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 new file mode 100644 index 000000000..ab58c671b --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/campaign_audience_view_service_pb2.py @@ -0,0 +1,106 @@ +# 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 new file mode 100644 index 000000000..159277d4d --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/campaign_audience_view_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.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): + """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): + """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 new file mode 100644 index 000000000..a556678fc --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/campaign_bid_modifier_service_pb2.py @@ -0,0 +1,405 @@ +# 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 new file mode 100644 index 000000000..669e709b2 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/campaign_bid_modifier_service_pb2_grpc.py @@ -0,0 +1,65 @@ +# 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): + """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): + """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 new file mode 100644 index 000000000..0f8349413 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/campaign_budget_service_pb2.py @@ -0,0 +1,405 @@ +# 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 new file mode 100644 index 000000000..dc952f9e5 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/campaign_budget_service_pb2_grpc.py @@ -0,0 +1,65 @@ +# 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): + """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): + """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 new file mode 100644 index 000000000..440da9469 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/campaign_criterion_service_pb2.py @@ -0,0 +1,403 @@ +# 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 new file mode 100644 index 000000000..47b7f7016 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/campaign_criterion_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.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): + """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): + """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 new file mode 100644 index 000000000..e41e1e9c3 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/campaign_criterion_simulation_service_pb2.py @@ -0,0 +1,107 @@ +# 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_criterion_simulation_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/campaign_criterion_simulation_service_pb2_grpc.py new file mode 100644 index 000000000..bb433f5b7 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/campaign_criterion_simulation_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.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 + + +class CampaignCriterionSimulationServiceStub(object): + """Service to fetch campaign criterion simulations. + """ + + def __init__(self, channel): + """Constructor. + + Args: + 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, + ) + + +class CampaignCriterionSimulationServiceServicer(object): + """Service to fetch campaign criterion simulations. + """ + + def GetCampaignCriterionSimulation(self, request, context): + """Returns the requested campaign criterion simulation in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +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, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v1.services.CampaignCriterionSimulationService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) 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 new file mode 100644 index 000000000..56a0aa397 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/campaign_extension_setting_service_pb2.py @@ -0,0 +1,406 @@ +# 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/{feed_id}`` + """, + # @@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_extension_setting_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/campaign_extension_setting_service_pb2_grpc.py new file mode 100644 index 000000000..9be3fc310 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/campaign_extension_setting_service_pb2_grpc.py @@ -0,0 +1,65 @@ +# 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 + + +class CampaignExtensionSettingServiceStub(object): + """Service to manage campaign extension settings. + """ + + def __init__(self, channel): + """Constructor. + + Args: + 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, + ) + 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, + ) + + +class CampaignExtensionSettingServiceServicer(object): + """Service to manage campaign extension settings. + """ + + def GetCampaignExtensionSetting(self, request, context): + """Returns the requested campaign extension setting in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MutateCampaignExtensionSettings(self, request, context): + """Creates, updates, or removes campaign extension settings. Operation + statuses are returned. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +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, + ), + '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, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v1.services.CampaignExtensionSettingService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) 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 new file mode 100644 index 000000000..7231bf76d --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/campaign_feed_service_pb2.py @@ -0,0 +1,405 @@ +# 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 new file mode 100644 index 000000000..30486526d --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/campaign_feed_service_pb2_grpc.py @@ -0,0 +1,65 @@ +# 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): + """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): + """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 new file mode 100644 index 000000000..56ace0ce5 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/campaign_label_service_pb2.py @@ -0,0 +1,379 @@ +# 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 new file mode 100644 index 000000000..ad45e37cc --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/campaign_label_service_pb2_grpc.py @@ -0,0 +1,65 @@ +# 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): + """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): + """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 new file mode 100644 index 000000000..c24a6224a --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/campaign_service_pb2.py @@ -0,0 +1,403 @@ +# 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 new file mode 100644 index 000000000..1c4086111 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/campaign_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.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): + """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): + """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 new file mode 100644 index 000000000..22099c2a2 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/campaign_shared_set_service_pb2.py @@ -0,0 +1,379 @@ +# 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 new file mode 100644 index 000000000..a79dbea77 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/campaign_shared_set_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.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): + """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): + """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 new file mode 100644 index 000000000..007029203 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/carrier_constant_service_pb2.py @@ -0,0 +1,106 @@ +# 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 new file mode 100644 index 000000000..991a9f6cf --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/carrier_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.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): + """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): + """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 new file mode 100644 index 000000000..bf3d7fee2 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/change_status_service_pb2.py @@ -0,0 +1,106 @@ +# 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 new file mode 100644 index 000000000..2f11f2a32 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/change_status_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.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): + """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): + """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 new file mode 100644 index 000000000..d2fac8bfc --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/click_view_service_pb2.py @@ -0,0 +1,106 @@ +# 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 new file mode 100644 index 000000000..0325cb609 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/click_view_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.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): + """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): + """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 new file mode 100644 index 000000000..e35a2e393 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/conversion_action_service_pb2.py @@ -0,0 +1,406 @@ +# 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 new file mode 100644 index 000000000..0b6ceae9a --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/conversion_action_service_pb2_grpc.py @@ -0,0 +1,65 @@ +# 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): + """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): + """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_upload_service_pb2.py b/google/ads/google_ads/v1/proto/services/conversion_upload_service_pb2.py new file mode 100644 index 000000000..e537afb96 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/conversion_upload_service_pb2.py @@ -0,0 +1,442 @@ +# -*- 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\"\x95\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\"\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\"\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\"\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.StringValue2\xf8\x01\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*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), + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=196, + serialized_end=345, +) + + +_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=348, + serialized_end=505, +) + + +_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=508, + serialized_end=938, +) + + +_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=941, + serialized_end=1099, +) + + +_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=1102, + serialized_end=1287, +) + +_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 +_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 +_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 +DESCRIPTOR.message_types_by_name['UploadClickConversionsRequest'] = _UPLOADCLICKCONVERSIONSREQUEST +DESCRIPTOR.message_types_by_name['UploadClickConversionsResponse'] = _UPLOADCLICKCONVERSIONSRESPONSE +DESCRIPTOR.message_types_by_name['ClickConversion'] = _CLICKCONVERSION +DESCRIPTOR.message_types_by_name['ExternalAttributionData'] = _EXTERNALATTRIBUTIONDATA +DESCRIPTOR.message_types_by_name['ClickConversionResult'] = _CLICKCONVERSIONRESULT +_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. + """, + # @@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. + """, + # @@protoc_insertion_point(class_scope:google.ads.googleads.v1.services.UploadClickConversionsResponse) + )) +_sym_db.RegisterMessage(UploadClickConversionsResponse) + +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) + +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) + + +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=1290, + serialized_end=1538, + 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*'), + ), +]) +_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 new file mode 100644 index 000000000..5d8305c1e --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/conversion_upload_service_pb2_grpc.py @@ -0,0 +1,46 @@ +# 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, + ) + + +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 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, + ), + } + 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 new file mode 100644 index 000000000..40de87538 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/custom_interest_service_pb2.py @@ -0,0 +1,364 @@ +# 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 new file mode 100644 index 000000000..0969714b3 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/custom_interest_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.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): + """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): + """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 new file mode 100644 index 000000000..e3d64431e --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/customer_client_link_service_pb2.py @@ -0,0 +1,353 @@ +# 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 new file mode 100644 index 000000000..07574595e --- /dev/null +++ b/google/ads/google_ads/v1/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.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 new file mode 100644 index 000000000..0a1260c1c --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/customer_client_service_pb2.py @@ -0,0 +1,106 @@ +# 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 new file mode 100644 index 000000000..3d96616c4 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/customer_client_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.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): + """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): + """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 new file mode 100644 index 000000000..f3103761c --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/customer_extension_setting_service_pb2.py @@ -0,0 +1,406 @@ +# 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/{feed_id}`` + """, + # @@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_extension_setting_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/customer_extension_setting_service_pb2_grpc.py new file mode 100644 index 000000000..bc1ca3c34 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/customer_extension_setting_service_pb2_grpc.py @@ -0,0 +1,65 @@ +# 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 + + +class CustomerExtensionSettingServiceStub(object): + """Service to manage customer extension settings. + """ + + def __init__(self, channel): + """Constructor. + + Args: + 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, + ) + 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, + ) + + +class CustomerExtensionSettingServiceServicer(object): + """Service to manage customer extension settings. + """ + + def GetCustomerExtensionSetting(self, request, context): + """Returns the requested customer extension setting in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def MutateCustomerExtensionSettings(self, request, context): + """Creates, updates, or removes customer extension settings. Operation + statuses are returned. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +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, + ), + '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, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v1.services.CustomerExtensionSettingService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) 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 new file mode 100644 index 000000000..e8ed90a71 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/customer_feed_service_pb2.py @@ -0,0 +1,405 @@ +# 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 new file mode 100644 index 000000000..a5669f5da --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/customer_feed_service_pb2_grpc.py @@ -0,0 +1,65 @@ +# 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): + """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): + """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 new file mode 100644 index 000000000..b51ce11e2 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/customer_label_service_pb2.py @@ -0,0 +1,379 @@ +# 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 new file mode 100644 index 000000000..330f5dd5e --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/customer_label_service_pb2_grpc.py @@ -0,0 +1,65 @@ +# 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): + """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): + """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 new file mode 100644 index 000000000..17ba96bb4 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/customer_manager_link_service_pb2.py @@ -0,0 +1,344 @@ +# 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 new file mode 100644 index 000000000..b52cdef47 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/customer_manager_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.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 new file mode 100644 index 000000000..57e10541e --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/customer_negative_criterion_service_pb2.py @@ -0,0 +1,378 @@ +# 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_negative_criterion_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/customer_negative_criterion_service_pb2_grpc.py new file mode 100644 index 000000000..eeed0ce25 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/customer_negative_criterion_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.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 + + +class CustomerNegativeCriterionServiceStub(object): + """Service to manage customer negative criteria. + """ + + def __init__(self, channel): + """Constructor. + + Args: + 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, + ) + 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, + ) + + +class CustomerNegativeCriterionServiceServicer(object): + """Service to manage customer negative criteria. + """ + + def GetCustomerNegativeCriterion(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 MutateCustomerNegativeCriteria(self, request, context): + """Creates 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_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, + ), + '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, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v1.services.CustomerNegativeCriterionService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) 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 new file mode 100644 index 000000000..ff8280afb --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/customer_service_pb2.py @@ -0,0 +1,549 @@ +# 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 new file mode 100644 index 000000000..3e27d3375 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/customer_service_pb2_grpc.py @@ -0,0 +1,99 @@ +# 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): + """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): + """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 new file mode 100644 index 000000000..162c5c13f --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/detail_placement_view_service_pb2.py @@ -0,0 +1,106 @@ +# 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 new file mode 100644 index 000000000..876b12376 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/detail_placement_view_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.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): + """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): + """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 new file mode 100644 index 000000000..b439dc21d --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/display_keyword_view_service_pb2.py @@ -0,0 +1,106 @@ +# 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 new file mode 100644 index 000000000..9ce4ae487 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/display_keyword_view_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.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): + """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): + """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 new file mode 100644 index 000000000..52056f7cb --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/domain_category_service_pb2.py @@ -0,0 +1,106 @@ +# 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 new file mode 100644 index 000000000..5d403780d --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/domain_category_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.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): + """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): + """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 new file mode 100644 index 000000000..029bbb019 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/dynamic_search_ads_search_term_view_service_pb2.py @@ -0,0 +1,107 @@ +# 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/dynamic_search_ads_search_term_view_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/dynamic_search_ads_search_term_view_service_pb2_grpc.py new file mode 100644 index 000000000..09e073396 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/dynamic_search_ads_search_term_view_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.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 + + +class DynamicSearchAdsSearchTermViewServiceStub(object): + """Service to fetch dynamic search ads views. + """ + + def __init__(self, channel): + """Constructor. + + Args: + 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, + ) + + +class DynamicSearchAdsSearchTermViewServiceServicer(object): + """Service to fetch dynamic search ads views. + """ + + def GetDynamicSearchAdsSearchTermView(self, request, context): + """Returns the requested dynamic search ads search term view in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +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, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v1.services.DynamicSearchAdsSearchTermViewService', 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 new file mode 100644 index 000000000..272f5f037 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/extension_feed_item_service_pb2.py @@ -0,0 +1,378 @@ +# 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 new file mode 100644 index 000000000..e882ce676 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/extension_feed_item_service_pb2_grpc.py @@ -0,0 +1,65 @@ +# 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): + """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): + """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 new file mode 100644 index 000000000..94aa95632 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/feed_item_service_pb2.py @@ -0,0 +1,403 @@ +# 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 new file mode 100644 index 000000000..44efcce86 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/feed_item_service_pb2_grpc.py @@ -0,0 +1,65 @@ +# 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): + """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): + """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 new file mode 100644 index 000000000..5e4e68aaf --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/feed_item_target_service_pb2.py @@ -0,0 +1,342 @@ +# 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 new file mode 100644 index 000000000..b16594bfa --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/feed_item_target_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.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): + """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): + """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 new file mode 100644 index 000000000..a7988a76f --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/feed_mapping_service_pb2.py @@ -0,0 +1,377 @@ +# 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 new file mode 100644 index 000000000..c8a7df7c8 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/feed_mapping_service_pb2_grpc.py @@ -0,0 +1,65 @@ +# 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): + """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): + """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 new file mode 100644 index 000000000..8548a3670 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/feed_placeholder_view_service_pb2.py @@ -0,0 +1,106 @@ +# 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 new file mode 100644 index 000000000..9a3b89851 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/feed_placeholder_view_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.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): + """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): + """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 new file mode 100644 index 000000000..117717c20 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/feed_service_pb2.py @@ -0,0 +1,403 @@ +# 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 new file mode 100644 index 000000000..80007f67f --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/feed_service_pb2_grpc.py @@ -0,0 +1,65 @@ +# 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): + """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): + """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 new file mode 100644 index 000000000..60255bac0 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/gender_view_service_pb2.py @@ -0,0 +1,106 @@ +# 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 new file mode 100644 index 000000000..e44ff03e9 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/gender_view_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.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): + """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): + """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 new file mode 100644 index 000000000..34fd867b2 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/geo_target_constant_service_pb2.py @@ -0,0 +1,448 @@ +# -*- 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 new file mode 100644 index 000000000..34a6cf12f --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/geo_target_constant_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.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): + """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): + """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 new file mode 100644 index 000000000..436b4df6a --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/geographic_view_service_pb2.py @@ -0,0 +1,106 @@ +# 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 new file mode 100644 index 000000000..84205c37f --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/geographic_view_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.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): + """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): + """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 new file mode 100644 index 000000000..99d8ce19d --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/google_ads_field_service_pb2.py @@ -0,0 +1,257 @@ +# 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 new file mode 100644 index 000000000..dca028aec --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/google_ads_field_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.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): + """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): + """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 new file mode 100644 index 000000000..5aef1b6f7 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/google_ads_service_pb2.py @@ -0,0 +1,2403 @@ +# 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_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_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 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_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 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 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 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 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 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_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\x1aHgoogle/ads/googleads_v1/proto/resources/campaign_extension_setting.proto\x1a;google/ads/googleads_v1/proto/resources/campaign_feed.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/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\x1aOgoogle/ads/googleads_v1/proto/resources/operating_system_version_constant.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\"\x82\x34\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^\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\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\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_\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\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\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\x12l\n!operating_system_version_constant\x18V \x01(\x0b\x32\x41.google.ads.googleads.v1.resources.OperatingSystemVersionConstant\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\"\x9d\x1b\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\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\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\"\xa3\x1b\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\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\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__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__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_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__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_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_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_operating__system__version__constant__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_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__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=8160, + serialized_end=8282, +) + + +_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=8285, + serialized_end=8477, +) + + +_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_extension_setting', full_name='google.ads.googleads.v1.services.GoogleAdsRow.ad_group_extension_setting', index=9, + 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=10, + 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=11, + 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='age_range_view', full_name='google.ads.googleads.v1.services.GoogleAdsRow.age_range_view', index=12, + 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=13, + 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=14, + 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='bidding_strategy', full_name='google.ads.googleads.v1.services.GoogleAdsRow.bidding_strategy', 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=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='billing_setup', full_name='google.ads.googleads.v1.services.GoogleAdsRow.billing_setup', index=16, + 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=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='campaign', full_name='google.ads.googleads.v1.services.GoogleAdsRow.campaign', index=18, + number=2, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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=19, + 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=20, + 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=21, + 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_extension_setting', full_name='google.ads.googleads.v1.services.GoogleAdsRow.campaign_extension_setting', index=22, + 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=23, + 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=24, + 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=25, + 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=26, + 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=27, + 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=28, + 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=29, + 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=30, + 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=31, + number=1, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=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=32, + 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=33, + 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=34, + 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=35, + 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=36, + 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=37, + 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=38, + 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=39, + 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=40, + 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=41, + 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='extension_feed_item', full_name='google.ads.googleads.v1.services.GoogleAdsRow.extension_feed_item', index=42, + 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=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=None, file=DESCRIPTOR), + _descriptor.FieldDescriptor( + name='feed_item', full_name='google.ads.googleads.v1.services.GoogleAdsRow.feed_item', index=44, + 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=45, + 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=46, + 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=47, + 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=48, + 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=49, + 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=50, + 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=51, + 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=52, + 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=53, + 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=54, + 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=55, + 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=56, + 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=57, + 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=58, + 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=59, + 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=60, + 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='language_constant', full_name='google.ads.googleads.v1.services.GoogleAdsRow.language_constant', index=61, + 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=62, + 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=63, + 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=64, + 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=65, + 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=66, + 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='operating_system_version_constant', full_name='google.ads.googleads.v1.services.GoogleAdsRow.operating_system_version_constant', index=67, + 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='parental_status_view', full_name='google.ads.googleads.v1.services.GoogleAdsRow.parental_status_view', index=68, + 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=69, + 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=70, + 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=71, + 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=72, + 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=73, + 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=74, + 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=75, + 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=76, + 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=77, + 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=78, + 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=79, + 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=80, + 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=81, + 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=82, + 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=83, + 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=8480, + serialized_end=15138, +) + + +_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=15141, + serialized_end=15312, +) + + +_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=15315, + serialized_end=15486, +) + + +_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='bidding_strategy_operation', full_name='google.ads.googleads.v1.services.MutateOperation.bidding_strategy_operation', index=10, + 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=11, + 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=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='campaign_criterion_operation', full_name='google.ads.googleads.v1.services.MutateOperation.campaign_criterion_operation', index=13, + 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_extension_setting_operation', full_name='google.ads.googleads.v1.services.MutateOperation.campaign_extension_setting_operation', 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='campaign_feed_operation', full_name='google.ads.googleads.v1.services.MutateOperation.campaign_feed_operation', index=15, + 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=16, + 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=17, + 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=18, + 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=19, + 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=20, + 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=21, + 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=22, + 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=23, + 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=24, + 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=25, + 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=26, + 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=27, + 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=28, + 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=29, + 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=30, + 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=31, + 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=32, + 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=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='shared_set_operation', full_name='google.ads.googleads.v1.services.MutateOperation.shared_set_operation', 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='user_list_operation', full_name='google.ads.googleads.v1.services.MutateOperation.user_list_operation', 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), + ], + 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=15489, + serialized_end=18974, +) + + +_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='bidding_strategy_result', full_name='google.ads.googleads.v1.services.MutateOperationResponse.bidding_strategy_result', index=10, + 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=11, + 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=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='campaign_criterion_result', full_name='google.ads.googleads.v1.services.MutateOperationResponse.campaign_criterion_result', index=13, + 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_extension_setting_result', full_name='google.ads.googleads.v1.services.MutateOperationResponse.campaign_extension_setting_result', 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='campaign_feed_result', full_name='google.ads.googleads.v1.services.MutateOperationResponse.campaign_feed_result', index=15, + 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=16, + 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=17, + 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=18, + 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=19, + 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=20, + 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=21, + 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=22, + 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=23, + 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=24, + 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=25, + 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=26, + 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=27, + 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=28, + 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=29, + 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=30, + 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=31, + 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=32, + 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=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='shared_set_result', full_name='google.ads.googleads.v1.services.MutateOperationResponse.shared_set_result', 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='user_list_result', full_name='google.ads.googleads.v1.services.MutateOperationResponse.user_list_result', 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), + ], + 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=18977, + serialized_end=22468, +) + +_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_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['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['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_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['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['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['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['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['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_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['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_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['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_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['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_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_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. + 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. + 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_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. + 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. + 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. + operating_system_version_constant: + The operating system version constant 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. + 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_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. + 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_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=22471, + serialized_end=22863, + 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 new file mode 100644 index 000000000..34164e13d --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/google_ads_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.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): + """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): + """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. Operation statuses are returned. + """ + 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 new file mode 100644 index 000000000..ba6ae1c12 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/group_placement_view_service_pb2.py @@ -0,0 +1,106 @@ +# 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 new file mode 100644 index 000000000..c0c405ab3 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/group_placement_view_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.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): + """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): + """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 new file mode 100644 index 000000000..9102b6b38 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/hotel_group_view_service_pb2.py @@ -0,0 +1,106 @@ +# 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 new file mode 100644 index 000000000..47babb9ea --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/hotel_group_view_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.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): + """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): + """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 new file mode 100644 index 000000000..594666b84 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/hotel_performance_view_service_pb2.py @@ -0,0 +1,106 @@ +# 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 new file mode 100644 index 000000000..07fb4de54 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/hotel_performance_view_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.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): + """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): + """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 new file mode 100644 index 000000000..5ef447721 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/keyword_plan_ad_group_service_pb2.py @@ -0,0 +1,405 @@ +# 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 new file mode 100644 index 000000000..d96b9394e --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/keyword_plan_ad_group_service_pb2_grpc.py @@ -0,0 +1,65 @@ +# 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): + """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): + """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 new file mode 100644 index 000000000..d4133ee19 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/keyword_plan_campaign_service_pb2.py @@ -0,0 +1,405 @@ +# 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 new file mode 100644 index 000000000..a4f206887 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/keyword_plan_campaign_service_pb2_grpc.py @@ -0,0 +1,65 @@ +# 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): + """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): + """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 new file mode 100644 index 000000000..24aca83f0 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/keyword_plan_idea_service_pb2.py @@ -0,0 +1,447 @@ +# 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_idea_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/keyword_plan_idea_service_pb2_grpc.py new file mode 100644 index 000000000..4fbc9ccfc --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/keyword_plan_idea_service_pb2_grpc.py @@ -0,0 +1,46 @@ +# 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 + + +class KeywordPlanIdeaServiceStub(object): + """Service to generate keyword ideas. + """ + + def __init__(self, channel): + """Constructor. + + Args: + 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, + ) + + +class KeywordPlanIdeaServiceServicer(object): + """Service to generate keyword ideas. + """ + + def GenerateKeywordIdeas(self, request, context): + """Returns a list of keyword ideas. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +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, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v1.services.KeywordPlanIdeaService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) 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 new file mode 100644 index 000000000..86910e170 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/keyword_plan_keyword_service_pb2.py @@ -0,0 +1,405 @@ +# 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 new file mode 100644 index 000000000..5a216a6bc --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/keyword_plan_keyword_service_pb2_grpc.py @@ -0,0 +1,65 @@ +# 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): + """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): + """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 new file mode 100644 index 000000000..3e75235e2 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/keyword_plan_negative_keyword_service_pb2.py @@ -0,0 +1,406 @@ +# 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 new file mode 100644 index 000000000..c6ce149c2 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/keyword_plan_negative_keyword_service_pb2_grpc.py @@ -0,0 +1,65 @@ +# 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): + """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): + """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 new file mode 100644 index 000000000..50119e670 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/keyword_plan_service_pb2.py @@ -0,0 +1,969 @@ +# 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 new file mode 100644 index 000000000..cfeab45d0 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/keyword_plan_service_pb2_grpc.py @@ -0,0 +1,99 @@ +# 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): + """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): + """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 new file mode 100644 index 000000000..f0059df02 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/keyword_view_service_pb2.py @@ -0,0 +1,106 @@ +# 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 new file mode 100644 index 000000000..9454a5b85 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/keyword_view_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.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): + """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): + """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 new file mode 100644 index 000000000..be66d6d84 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/label_service_pb2.py @@ -0,0 +1,402 @@ +# 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 new file mode 100644 index 000000000..e5367ce72 --- /dev/null +++ b/google/ads/google_ads/v1/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.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/language_constant_service_pb2.py b/google/ads/google_ads/v1/proto/services/language_constant_service_pb2.py new file mode 100644 index 000000000..9c54de6de --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/language_constant_service_pb2.py @@ -0,0 +1,106 @@ +# 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 new file mode 100644 index 000000000..2953a9d3a --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/language_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.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): + """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): + """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 new file mode 100644 index 000000000..d00ac6774 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/location_view_service_pb2.py @@ -0,0 +1,106 @@ +# 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 new file mode 100644 index 000000000..f711d89cf --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/location_view_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.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): + """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): + """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 new file mode 100644 index 000000000..b1b28ff30 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/managed_placement_view_service_pb2.py @@ -0,0 +1,106 @@ +# 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 new file mode 100644 index 000000000..d5c19db7a --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/managed_placement_view_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.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): + """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): + """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 new file mode 100644 index 000000000..8f5cd0c93 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/media_file_service_pb2.py @@ -0,0 +1,363 @@ +# 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 new file mode 100644 index 000000000..5f65076ee --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/media_file_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.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): + """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): + """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 new file mode 100644 index 000000000..9974291fd --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/merchant_center_link_service_pb2.py @@ -0,0 +1,458 @@ +# 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 new file mode 100644 index 000000000..d9a453e10 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/merchant_center_link_service_pb2_grpc.py @@ -0,0 +1,83 @@ +# 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): + """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): + """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 new file mode 100644 index 000000000..250e22a50 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/mobile_app_category_constant_service_pb2.py @@ -0,0 +1,106 @@ +# 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 new file mode 100644 index 000000000..aea44605d --- /dev/null +++ b/google/ads/google_ads/v1/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.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 new file mode 100644 index 000000000..239bf4118 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/mobile_device_constant_service_pb2.py @@ -0,0 +1,106 @@ +# 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 new file mode 100644 index 000000000..041f67ed8 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/mobile_device_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.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): + """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): + """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 new file mode 100644 index 000000000..787a703a4 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/mutate_job_service_pb2.py @@ -0,0 +1,626 @@ +# 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 Simply 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 new file mode 100644 index 000000000..29b857116 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/mutate_job_service_pb2_grpc.py @@ -0,0 +1,121 @@ +# 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): + """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): + """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 new file mode 100644 index 000000000..0885c9c9c --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/operating_system_version_constant_service_pb2.py @@ -0,0 +1,106 @@ +# 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/operating_system_version_constant_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/operating_system_version_constant_service_pb2_grpc.py new file mode 100644 index 000000000..9bdf63e19 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/operating_system_version_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.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 + + +class OperatingSystemVersionConstantServiceStub(object): + """Service to fetch Operating System Version constants. + """ + + def __init__(self, channel): + """Constructor. + + Args: + 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, + ) + + +class OperatingSystemVersionConstantServiceServicer(object): + """Service to fetch Operating System Version constants. + """ + + def GetOperatingSystemVersionConstant(self, request, context): + """Returns the requested OS version constant in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +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, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v1.services.OperatingSystemVersionConstantService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) diff --git a/google/ads/google_ads/v1/proto/services/parental_status_view_service_pb2.py b/google/ads/google_ads/v1/proto/services/parental_status_view_service_pb2.py new file mode 100644 index 000000000..84ab53d0f --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/parental_status_view_service_pb2.py @@ -0,0 +1,106 @@ +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/ads/googleads_v1/proto/services/parental_status_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 parental_status_view_pb2 as google_dot_ads_dot_googleads__v1_dot_proto_dot_resources_dot_parental__status__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/parental_status_view_service.proto', + package='google.ads.googleads.v1.services', + syntax='proto3', + serialized_options=_b('\n$com.google.ads.googleads.v1.servicesB\036ParentalStatusViewServiceProtoP\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/parental_status_view_service.proto\x12 google.ads.googleads.v1.services\x1a\x42google/ads/googleads_v1/proto/resources/parental_status_view.proto\x1a\x1cgoogle/api/annotations.proto\"5\n\x1cGetParentalStatusViewRequest\x12\x15\n\rresource_name\x18\x01 \x01(\t2\xeb\x01\n\x19ParentalStatusViewService\x12\xcd\x01\n\x15GetParentalStatusView\x12>.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 new file mode 100644 index 000000000..32d039695 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/parental_status_view_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.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): + """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): + """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 new file mode 100644 index 000000000..5892b35e0 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/payments_account_service_pb2.py @@ -0,0 +1,155 @@ +# 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 new file mode 100644 index 000000000..9ab397b73 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/payments_account_service_pb2_grpc.py @@ -0,0 +1,50 @@ +# 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): + """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): + """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 new file mode 100644 index 000000000..183115862 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/product_bidding_category_constant_service_pb2.py @@ -0,0 +1,106 @@ +# 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::Enums'), + 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\x8e\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::Enumsb\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_bidding_category_constant_service_pb2_grpc.py b/google/ads/google_ads/v1/proto/services/product_bidding_category_constant_service_pb2_grpc.py new file mode 100644 index 000000000..e46be4831 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/product_bidding_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.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 + + +class ProductBiddingCategoryConstantServiceStub(object): + """Service to fetch Product Bidding Categories. + """ + + def __init__(self, channel): + """Constructor. + + Args: + 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, + ) + + +class ProductBiddingCategoryConstantServiceServicer(object): + """Service to fetch Product Bidding Categories. + """ + + def GetProductBiddingCategoryConstant(self, request, context): + """Returns the requested Product Bidding Category in full detail. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +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, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'google.ads.googleads.v1.services.ProductBiddingCategoryConstantService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) 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 new file mode 100644 index 000000000..3c174bb74 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/product_group_view_service_pb2.py @@ -0,0 +1,106 @@ +# 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 new file mode 100644 index 000000000..ccba8a1a1 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/product_group_view_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.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): + """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): + """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 new file mode 100644 index 000000000..5fe29cf42 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/recommendation_service_pb2.py @@ -0,0 +1,877 @@ +# 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.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.google.ads.googleads.v1.services.ApplyRecommendationOperation\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\"\x90\x08\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\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.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_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=366, + serialized_end=415, +) + + +_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=418, + serialized_end=576, +) + + +_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=1069, + serialized_end=1158, +) + +_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=1160, + serialized_end=1229, +) + +_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=1232, + serialized_end=1442, +) + +_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=1445, + serialized_end=1599, +) + +_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), + ], + extensions=[ + ], + nested_types=[_APPLYRECOMMENDATIONOPERATION_CAMPAIGNBUDGETPARAMETERS, _APPLYRECOMMENDATIONOPERATION_TEXTADPARAMETERS, _APPLYRECOMMENDATIONOPERATION_KEYWORDPARAMETERS, _APPLYRECOMMENDATIONOPERATION_TARGETCPAOPTINPARAMETERS, ], + 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=579, + serialized_end=1619, +) + + +_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=1622, + serialized_end=1780, +) + + +_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=1782, + serialized_end=1832, +) + + +_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=2028, + serialized_end=2083, +) + +_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=1835, + serialized_end=2083, +) + + +_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=2280, + serialized_end=2332, +) + +_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=2086, + serialized_end=2332, +) + +_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.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.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'] +_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) + )) + , + 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. + """, + # @@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) + +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=2335, + serialized_end=2984, + 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 new file mode 100644 index 000000000..c8ecda683 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/recommendation_service_pb2_grpc.py @@ -0,0 +1,81 @@ +# 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): + """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): + """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 new file mode 100644 index 000000000..28eaa27bf --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/remarketing_action_service_pb2.py @@ -0,0 +1,391 @@ +# 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 new file mode 100644 index 000000000..85981eaf6 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/remarketing_action_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.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): + """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): + """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 new file mode 100644 index 000000000..7412fbfd2 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/search_term_view_service_pb2.py @@ -0,0 +1,106 @@ +# 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 new file mode 100644 index 000000000..86c77122f --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/search_term_view_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.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): + """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): + """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 new file mode 100644 index 000000000..ea5f0add7 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/shared_criterion_service_pb2.py @@ -0,0 +1,379 @@ +# 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 new file mode 100644 index 000000000..8c5e6d866 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/shared_criterion_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.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): + """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): + """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 new file mode 100644 index 000000000..4a4c71e5a --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/shared_set_service_pb2.py @@ -0,0 +1,403 @@ +# 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 new file mode 100644 index 000000000..515cee826 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/shared_set_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.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): + """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): + """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 new file mode 100644 index 000000000..f2444347a --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/shopping_performance_view_service_pb2.py @@ -0,0 +1,106 @@ +# 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\x83\x02\n\x1eShoppingPerformanceViewService\x12\xe0\x01\n\x1aGetShoppingPerformanceView\x12\x43.google.ads.googleads.v1.services.GetShoppingPerformanceViewRequest\x1a:.google.ads.googleads.v1.resources.ShoppingPerformanceView\"A\x82\xd3\xe4\x93\x02;\x12\x39/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=539, + 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\002;\0229/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 new file mode 100644 index 000000000..b1b269d54 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/shopping_performance_view_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.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): + """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): + """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 new file mode 100644 index 000000000..678057cda --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/topic_constant_service_pb2.py @@ -0,0 +1,106 @@ +# 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 new file mode 100644 index 000000000..7f874b8b0 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/user_list_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.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): + """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): + """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 new file mode 100644 index 000000000..86382291e --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/video_service_pb2.py @@ -0,0 +1,106 @@ +# 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 new file mode 100644 index 000000000..5d878f4c7 --- /dev/null +++ b/google/ads/google_ads/v1/proto/services/video_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.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): + """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): + """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/__init__.py b/google/ads/google_ads/v1/services/__init__.py new file mode 100644 index 000000000..e69de29bb 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 new file mode 100644 index 000000000..7dc861bf6 --- /dev/null +++ b/google/ads/google_ads/v1/services/account_budget_proposal_service_client.py @@ -0,0 +1,290 @@ +# -*- 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 new file mode 100644 index 000000000..1d7d32a5e --- /dev/null +++ b/google/ads/google_ads/v1/services/account_budget_proposal_service_client_config.py @@ -0,0 +1,33 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.AccountBudgetProposalService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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/v1/services/account_budget_service_client.py new file mode 100644 index 000000000..b3f2fdf94 --- /dev/null +++ b/google/ads/google_ads/v1/services/account_budget_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.v1.services AccountBudgetService 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_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 + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', ).version + + +class AccountBudgetServiceClient(object): + """ + A service for fetching an account-level budget. + + Account-level budgets are mutated by creating proposal 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.AccountBudgetService' + + @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: + AccountBudgetServiceClient: 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_path(cls, customer, account_budget): + """Return a fully-qualified account_budget string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/accountBudgets/{account_budget}', + customer=customer, + account_budget=account_budget, + ) + + def __init__(self, + transport=None, + channel=None, + credentials=None, + client_config=None, + client_info=None): + """Constructor. + + Args: + transport (Union[~.AccountBudgetServiceGrpcTransport, + Callable[[~.Credentials, type], ~.AccountBudgetServiceGrpcTransport]): 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_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_service_grpc_transport. + AccountBudgetServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.') + self.transport = transport + else: + self.transport = account_budget_service_grpc_transport.AccountBudgetServiceGrpcTransport( + 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(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. + 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.AccountBudget` 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' 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, + ) + + 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) 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 new file mode 100644 index 000000000..e0f8e9a8e --- /dev/null +++ b/google/ads/google_ads/v1/services/account_budget_service_client_config.py @@ -0,0 +1,28 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.AccountBudgetService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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 new file mode 100644 index 000000000..7c563cdd2 --- /dev/null +++ b/google/ads/google_ads/v1/services/ad_group_ad_label_service_client.py @@ -0,0 +1,281 @@ +# -*- 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 new file mode 100644 index 000000000..e869cd7da --- /dev/null +++ b/google/ads/google_ads/v1/services/ad_group_ad_label_service_client_config.py @@ -0,0 +1,33 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.AdGroupAdLabelService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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 new file mode 100644 index 000000000..3607e8a09 --- /dev/null +++ b/google/ads/google_ads/v1/services/ad_group_ad_service_client.py @@ -0,0 +1,278 @@ +# -*- 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 new file mode 100644 index 000000000..42e7114e7 --- /dev/null +++ b/google/ads/google_ads/v1/services/ad_group_ad_service_client_config.py @@ -0,0 +1,33 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.AdGroupAdService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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/v1/services/ad_group_audience_view_service_client.py new file mode 100644 index 000000000..b17a0f18d --- /dev/null +++ b/google/ads/google_ads/v1/services/ad_group_audience_view_service_client.py @@ -0,0 +1,217 @@ +# -*- 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 AdGroupAudienceViewService 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_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 + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', ).version + + +class AdGroupAudienceViewServiceClient(object): + """Service to manage ad group audience 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.v1.services.AdGroupAudienceViewService' + + @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: + AdGroupAudienceViewServiceClient: 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_audience_view_path(cls, customer, ad_group_audience_view): + """Return a fully-qualified ad_group_audience_view string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/adGroupAudienceViews/{ad_group_audience_view}', + customer=customer, + ad_group_audience_view=ad_group_audience_view, + ) + + def __init__(self, + transport=None, + channel=None, + credentials=None, + client_config=None, + client_info=None): + """Constructor. + + Args: + transport (Union[~.AdGroupAudienceViewServiceGrpcTransport, + Callable[[~.Credentials, type], ~.AdGroupAudienceViewServiceGrpcTransport]): 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_audience_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_audience_view_service_grpc_transport + .AdGroupAudienceViewServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.') + self.transport = transport + else: + self.transport = ad_group_audience_view_service_grpc_transport.AdGroupAudienceViewServiceGrpcTransport( + 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_audience_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 audience view in full detail. + + Args: + resource_name (str): 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. + 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.AdGroupAudienceView` 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_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, + ) + + 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) 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 new file mode 100644 index 000000000..3b540bbb4 --- /dev/null +++ b/google/ads/google_ads/v1/services/ad_group_audience_view_service_client_config.py @@ -0,0 +1,28 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.AdGroupAudienceViewService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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/v1/services/ad_group_bid_modifier_service_client.py new file mode 100644 index 000000000..6f959c4c6 --- /dev/null +++ b/google/ads/google_ads/v1/services/ad_group_bid_modifier_service_client.py @@ -0,0 +1,282 @@ +# -*- 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 AdGroupBidModifierService 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_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 + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', ).version + + +class AdGroupBidModifierServiceClient(object): + """Service to manage ad group bid modifiers.""" + + 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.AdGroupBidModifierService' + + @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: + AdGroupBidModifierServiceClient: 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_bid_modifier_path(cls, customer, ad_group_bid_modifier): + """Return a fully-qualified ad_group_bid_modifier string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/adGroupBidModifiers/{ad_group_bid_modifier}', + customer=customer, + ad_group_bid_modifier=ad_group_bid_modifier, + ) + + def __init__(self, + transport=None, + channel=None, + credentials=None, + client_config=None, + client_info=None): + """Constructor. + + Args: + transport (Union[~.AdGroupBidModifierServiceGrpcTransport, + Callable[[~.Credentials, type], ~.AdGroupBidModifierServiceGrpcTransport]): 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_bid_modifier_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_bid_modifier_service_grpc_transport. + AdGroupBidModifierServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.') + self.transport = transport + else: + self.transport = ad_group_bid_modifier_service_grpc_transport.AdGroupBidModifierServiceGrpcTransport( + 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_bid_modifier( + 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 bid modifier in full detail. + + Args: + resource_name (str): 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. + 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.AdGroupBidModifier` 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_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, + ) + + 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) + + def mutate_ad_group_bid_modifiers( + 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 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. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v1.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. + 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.MutateAdGroupBidModifiersResponse` 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_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, + ) + + request = ad_group_bid_modifier_service_pb2.MutateAdGroupBidModifiersRequest( + customer_id=customer_id, + operations=operations, + 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) 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 new file mode 100644 index 000000000..a3096d58c --- /dev/null +++ b/google/ads/google_ads/v1/services/ad_group_bid_modifier_service_client_config.py @@ -0,0 +1,33 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.AdGroupBidModifierService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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/v1/services/ad_group_criterion_label_service_client.py new file mode 100644 index 000000000..b37f29202 --- /dev/null +++ b/google/ads/google_ads/v1/services/ad_group_criterion_label_service_client.py @@ -0,0 +1,282 @@ +# -*- 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 AdGroupCriterionLabelService 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_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 + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', ).version + + +class AdGroupCriterionLabelServiceClient(object): + """Service to manage labels on 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.AdGroupCriterionLabelService' + + @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: + AdGroupCriterionLabelServiceClient: 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_criterion_label_path(cls, customer, ad_group_criterion_label): + """Return a fully-qualified ad_group_criterion_label string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/adGroupCriterionLabels/{ad_group_criterion_label}', + customer=customer, + ad_group_criterion_label=ad_group_criterion_label, + ) + + def __init__(self, + transport=None, + channel=None, + credentials=None, + client_config=None, + client_info=None): + """Constructor. + + Args: + transport (Union[~.AdGroupCriterionLabelServiceGrpcTransport, + Callable[[~.Credentials, type], ~.AdGroupCriterionLabelServiceGrpcTransport]): 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_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_criterion_label_service_grpc_transport + .AdGroupCriterionLabelServiceGrpcTransport, + ) + 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_label_service_grpc_transport.AdGroupCriterionLabelServiceGrpcTransport( + 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_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 criterion label in full detail. + + Args: + resource_name (str): 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. + 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.AdGroupCriterionLabel` 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_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, + ) + + 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) + + def mutate_ad_group_criterion_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 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. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v1.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. + 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.MutateAdGroupCriterionLabelsResponse` 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_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, + ) + + request = ad_group_criterion_label_service_pb2.MutateAdGroupCriterionLabelsRequest( + customer_id=customer_id, + operations=operations, + 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) 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 new file mode 100644 index 000000000..dd5cd0189 --- /dev/null +++ b/google/ads/google_ads/v1/services/ad_group_criterion_label_service_client_config.py @@ -0,0 +1,33 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.AdGroupCriterionLabelService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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 new file mode 100644 index 000000000..cd28c4b29 --- /dev/null +++ b/google/ads/google_ads/v1/services/ad_group_criterion_service_client.py @@ -0,0 +1,280 @@ +# -*- 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 new file mode 100644 index 000000000..15b520b71 --- /dev/null +++ b/google/ads/google_ads/v1/services/ad_group_criterion_service_client_config.py @@ -0,0 +1,33 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.AdGroupCriterionService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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_extension_setting_service_client.py b/google/ads/google_ads/v1/services/ad_group_extension_setting_service_client.py new file mode 100644 index 000000000..c3004473c --- /dev/null +++ b/google/ads/google_ads/v1/services/ad_group_extension_setting_service_client.py @@ -0,0 +1,286 @@ +# -*- 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 new file mode 100644 index 000000000..4f9b99eeb --- /dev/null +++ b/google/ads/google_ads/v1/services/ad_group_extension_setting_service_client_config.py @@ -0,0 +1,33 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.AdGroupExtensionSettingService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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 new file mode 100644 index 000000000..c8c51a24d --- /dev/null +++ b/google/ads/google_ads/v1/services/ad_group_feed_service_client.py @@ -0,0 +1,279 @@ +# -*- 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 new file mode 100644 index 000000000..14d95127c --- /dev/null +++ b/google/ads/google_ads/v1/services/ad_group_feed_service_client_config.py @@ -0,0 +1,33 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.AdGroupFeedService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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 new file mode 100644 index 000000000..f2893b71c --- /dev/null +++ b/google/ads/google_ads/v1/services/ad_group_label_service_client.py @@ -0,0 +1,280 @@ +# -*- 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 new file mode 100644 index 000000000..3cb149a4c --- /dev/null +++ b/google/ads/google_ads/v1/services/ad_group_label_service_client_config.py @@ -0,0 +1,33 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.AdGroupLabelService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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 new file mode 100644 index 000000000..81ad3a0b0 --- /dev/null +++ b/google/ads/google_ads/v1/services/ad_group_service_client.py @@ -0,0 +1,276 @@ +# -*- 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 new file mode 100644 index 000000000..e5414e2c5 --- /dev/null +++ b/google/ads/google_ads/v1/services/ad_group_service_client_config.py @@ -0,0 +1,33 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.AdGroupService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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_parameter_service_client.py b/google/ads/google_ads/v1/services/ad_parameter_service_client.py new file mode 100644 index 000000000..43c6db122 --- /dev/null +++ b/google/ads/google_ads/v1/services/ad_parameter_service_client.py @@ -0,0 +1,279 @@ +# -*- 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 new file mode 100644 index 000000000..768c4d152 --- /dev/null +++ b/google/ads/google_ads/v1/services/ad_parameter_service_client_config.py @@ -0,0 +1,33 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.AdParameterService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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/v1/services/ad_schedule_view_service_client.py new file mode 100644 index 000000000..a38cc917e --- /dev/null +++ b/google/ads/google_ads/v1/services/ad_schedule_view_service_client.py @@ -0,0 +1,216 @@ +# -*- 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 AdScheduleViewService 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_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 + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', ).version + + +class AdScheduleViewServiceClient(object): + """Service to fetch ad schedule 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.v1.services.AdScheduleViewService' + + @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: + AdScheduleViewServiceClient: 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_schedule_view_path(cls, customer, ad_schedule_view): + """Return a fully-qualified ad_schedule_view string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/adScheduleViews/{ad_schedule_view}', + customer=customer, + ad_schedule_view=ad_schedule_view, + ) + + def __init__(self, + transport=None, + channel=None, + credentials=None, + client_config=None, + client_info=None): + """Constructor. + + Args: + transport (Union[~.AdScheduleViewServiceGrpcTransport, + Callable[[~.Credentials, type], ~.AdScheduleViewServiceGrpcTransport]): 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_schedule_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_schedule_view_service_grpc_transport. + AdScheduleViewServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.') + self.transport = transport + else: + self.transport = ad_schedule_view_service_grpc_transport.AdScheduleViewServiceGrpcTransport( + 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_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. + 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.AdScheduleView` 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_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, + ) + + 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) 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 new file mode 100644 index 000000000..cde2ec5a1 --- /dev/null +++ b/google/ads/google_ads/v1/services/ad_schedule_view_service_client_config.py @@ -0,0 +1,28 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.AdScheduleViewService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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.py b/google/ads/google_ads/v1/services/age_range_view_service_client.py new file mode 100644 index 000000000..443798c32 --- /dev/null +++ b/google/ads/google_ads/v1/services/age_range_view_service_client.py @@ -0,0 +1,216 @@ +# -*- 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 AgeRangeViewService 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 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 + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', ).version + + +class AgeRangeViewServiceClient(object): + """Service to manage age 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.v1.services.AgeRangeViewService' + + @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: + AgeRangeViewServiceClient: 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 age_range_view_path(cls, customer, age_range_view): + """Return a fully-qualified age_range_view string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/ageRangeViews/{age_range_view}', + customer=customer, + age_range_view=age_range_view, + ) + + def __init__(self, + transport=None, + channel=None, + credentials=None, + client_config=None, + client_info=None): + """Constructor. + + Args: + transport (Union[~.AgeRangeViewServiceGrpcTransport, + Callable[[~.Credentials, type], ~.AgeRangeViewServiceGrpcTransport]): 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 = age_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=age_range_view_service_grpc_transport. + AgeRangeViewServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.') + self.transport = transport + else: + self.transport = age_range_view_service_grpc_transport.AgeRangeViewServiceGrpcTransport( + 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_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. + 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.AgeRangeView` 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_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, + ) + + 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) 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 new file mode 100644 index 000000000..ed30a8a93 --- /dev/null +++ b/google/ads/google_ads/v1/services/age_range_view_service_client_config.py @@ -0,0 +1,28 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.AgeRangeViewService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "methods": { + "GetAgeRangeView": { + "timeout_millis": 60000, + "retry_codes_name": "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 new file mode 100644 index 000000000..2eb8fb9da --- /dev/null +++ b/google/ads/google_ads/v1/services/bidding_strategy_service_client.py @@ -0,0 +1,281 @@ +# -*- 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 new file mode 100644 index 000000000..23b7e979a --- /dev/null +++ b/google/ads/google_ads/v1/services/bidding_strategy_service_client_config.py @@ -0,0 +1,33 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.BiddingStrategyService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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 new file mode 100644 index 000000000..74e12e3c1 --- /dev/null +++ b/google/ads/google_ads/v1/services/billing_setup_service_client.py @@ -0,0 +1,279 @@ +# -*- 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 new file mode 100644 index 000000000..8c408f193 --- /dev/null +++ b/google/ads/google_ads/v1/services/billing_setup_service_client_config.py @@ -0,0 +1,33 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.BillingSetupService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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/v1/services/campaign_audience_view_service_client.py new file mode 100644 index 000000000..702f0039b --- /dev/null +++ b/google/ads/google_ads/v1/services/campaign_audience_view_service_client.py @@ -0,0 +1,217 @@ +# -*- 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 CampaignAudienceViewService 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_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 + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', ).version + + +class CampaignAudienceViewServiceClient(object): + """Service to manage campaign audience 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.v1.services.CampaignAudienceViewService' + + @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: + CampaignAudienceViewServiceClient: 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_audience_view_path(cls, customer, campaign_audience_view): + """Return a fully-qualified campaign_audience_view string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/campaignAudienceViews/{campaign_audience_view}', + customer=customer, + campaign_audience_view=campaign_audience_view, + ) + + def __init__(self, + transport=None, + channel=None, + credentials=None, + client_config=None, + client_info=None): + """Constructor. + + Args: + transport (Union[~.CampaignAudienceViewServiceGrpcTransport, + Callable[[~.Credentials, type], ~.CampaignAudienceViewServiceGrpcTransport]): 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_audience_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=campaign_audience_view_service_grpc_transport + .CampaignAudienceViewServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.') + self.transport = transport + else: + self.transport = campaign_audience_view_service_grpc_transport.CampaignAudienceViewServiceGrpcTransport( + 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_audience_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 campaign audience view in full detail. + + Args: + resource_name (str): 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. + 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.CampaignAudienceView` 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_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, + ) + + 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) 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 new file mode 100644 index 000000000..11c995edb --- /dev/null +++ b/google/ads/google_ads/v1/services/campaign_audience_view_service_client_config.py @@ -0,0 +1,28 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.CampaignAudienceViewService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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/v1/services/campaign_bid_modifier_service_client.py new file mode 100644 index 000000000..00bc9005b --- /dev/null +++ b/google/ads/google_ads/v1/services/campaign_bid_modifier_service_client.py @@ -0,0 +1,282 @@ +# -*- 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 CampaignBidModifierService 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_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 + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', ).version + + +class CampaignBidModifierServiceClient(object): + """Service to manage campaign bid modifiers.""" + + 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.CampaignBidModifierService' + + @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: + CampaignBidModifierServiceClient: 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_bid_modifier_path(cls, customer, campaign_bid_modifier): + """Return a fully-qualified campaign_bid_modifier string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/campaignBidModifiers/{campaign_bid_modifier}', + customer=customer, + campaign_bid_modifier=campaign_bid_modifier, + ) + + def __init__(self, + transport=None, + channel=None, + credentials=None, + client_config=None, + client_info=None): + """Constructor. + + Args: + transport (Union[~.CampaignBidModifierServiceGrpcTransport, + Callable[[~.Credentials, type], ~.CampaignBidModifierServiceGrpcTransport]): 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_bid_modifier_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_bid_modifier_service_grpc_transport. + CampaignBidModifierServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.') + self.transport = transport + else: + self.transport = campaign_bid_modifier_service_grpc_transport.CampaignBidModifierServiceGrpcTransport( + 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_bid_modifier( + 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 bid modifier in full detail. + + Args: + resource_name (str): 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. + 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.CampaignBidModifier` 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_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, + ) + + 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) + + def mutate_campaign_bid_modifiers( + 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 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. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v1.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. + 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.MutateCampaignBidModifiersResponse` 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_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, + ) + + request = campaign_bid_modifier_service_pb2.MutateCampaignBidModifiersRequest( + customer_id=customer_id, + operations=operations, + partial_failure=partial_failure, + validate_only=validate_only, + ) + return self._inner_api_calls['mutate_campaign_bid_modifiers']( + request, retry=retry, timeout=timeout, metadata=metadata) 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 new file mode 100644 index 000000000..ade321bfe --- /dev/null +++ b/google/ads/google_ads/v1/services/campaign_bid_modifier_service_client_config.py @@ -0,0 +1,33 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.CampaignBidModifierService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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 new file mode 100644 index 000000000..252d67b2d --- /dev/null +++ b/google/ads/google_ads/v1/services/campaign_budget_service_client.py @@ -0,0 +1,281 @@ +# -*- 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 new file mode 100644 index 000000000..126589f0c --- /dev/null +++ b/google/ads/google_ads/v1/services/campaign_budget_service_client_config.py @@ -0,0 +1,33 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.CampaignBudgetService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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 new file mode 100644 index 000000000..50c88cd5b --- /dev/null +++ b/google/ads/google_ads/v1/services/campaign_criterion_service_client.py @@ -0,0 +1,280 @@ +# -*- 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 new file mode 100644 index 000000000..44dba09e4 --- /dev/null +++ b/google/ads/google_ads/v1/services/campaign_criterion_service_client_config.py @@ -0,0 +1,33 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.CampaignCriterionService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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/v1/services/campaign_criterion_simulation_service_client.py new file mode 100644 index 000000000..9fcaeeb3b --- /dev/null +++ b/google/ads/google_ads/v1/services/campaign_criterion_simulation_service_client.py @@ -0,0 +1,219 @@ +# -*- 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 CampaignCriterionSimulationService 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_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 + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', ).version + + +class CampaignCriterionSimulationServiceClient(object): + """Service to fetch campaign criterion simulations.""" + + 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.CampaignCriterionSimulationService' + + @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: + CampaignCriterionSimulationServiceClient: 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_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}', + customer=customer, + campaign_criterion_simulation=campaign_criterion_simulation, + ) + + def __init__(self, + transport=None, + channel=None, + credentials=None, + client_config=None, + client_info=None): + """Constructor. + + Args: + transport (Union[~.CampaignCriterionSimulationServiceGrpcTransport, + Callable[[~.Credentials, type], ~.CampaignCriterionSimulationServiceGrpcTransport]): 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_simulation_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_simulation_service_grpc_transport. + CampaignCriterionSimulationServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.') + self.transport = transport + else: + self.transport = campaign_criterion_simulation_service_grpc_transport.CampaignCriterionSimulationServiceGrpcTransport( + 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_simulation( + 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 criterion simulation in full detail. + + Args: + resource_name (str): 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. + 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.CampaignCriterionSimulation` 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_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, + ) + + 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) 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 new file mode 100644 index 000000000..77169cd28 --- /dev/null +++ b/google/ads/google_ads/v1/services/campaign_criterion_simulation_service_client_config.py @@ -0,0 +1,29 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.CampaignCriterionSimulationService": + { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "methods": { + "GetCampaignCriterionSimulation": { + "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 new file mode 100644 index 000000000..aefd3d86b --- /dev/null +++ b/google/ads/google_ads/v1/services/campaign_extension_setting_service_client.py @@ -0,0 +1,286 @@ +# -*- 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 new file mode 100644 index 000000000..8812664fa --- /dev/null +++ b/google/ads/google_ads/v1/services/campaign_extension_setting_service_client_config.py @@ -0,0 +1,33 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.CampaignExtensionSettingService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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 new file mode 100644 index 000000000..f53778d6c --- /dev/null +++ b/google/ads/google_ads/v1/services/campaign_feed_service_client.py @@ -0,0 +1,280 @@ +# -*- 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 new file mode 100644 index 000000000..581f95628 --- /dev/null +++ b/google/ads/google_ads/v1/services/campaign_feed_service_client_config.py @@ -0,0 +1,33 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.CampaignFeedService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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 new file mode 100644 index 000000000..013912e99 --- /dev/null +++ b/google/ads/google_ads/v1/services/campaign_label_service_client.py @@ -0,0 +1,280 @@ +# -*- 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 new file mode 100644 index 000000000..f0d3b2ab7 --- /dev/null +++ b/google/ads/google_ads/v1/services/campaign_label_service_client_config.py @@ -0,0 +1,33 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.CampaignLabelService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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 new file mode 100644 index 000000000..7752ea6f7 --- /dev/null +++ b/google/ads/google_ads/v1/services/campaign_service_client.py @@ -0,0 +1,278 @@ +# -*- 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 new file mode 100644 index 000000000..29edaccb9 --- /dev/null +++ b/google/ads/google_ads/v1/services/campaign_service_client_config.py @@ -0,0 +1,33 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.CampaignService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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/v1/services/campaign_shared_set_service_client.py new file mode 100644 index 000000000..31cc697e2 --- /dev/null +++ b/google/ads/google_ads/v1/services/campaign_shared_set_service_client.py @@ -0,0 +1,281 @@ +# -*- 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 CampaignSharedSetService 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_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 + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', ).version + + +class CampaignSharedSetServiceClient(object): + """Service to manage campaign 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.CampaignSharedSetService' + + @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: + CampaignSharedSetServiceClient: 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_shared_set_path(cls, customer, campaign_shared_set): + """Return a fully-qualified campaign_shared_set string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/campaignSharedSets/{campaign_shared_set}', + customer=customer, + campaign_shared_set=campaign_shared_set, + ) + + def __init__(self, + transport=None, + channel=None, + credentials=None, + client_config=None, + client_info=None): + """Constructor. + + Args: + transport (Union[~.CampaignSharedSetServiceGrpcTransport, + Callable[[~.Credentials, type], ~.CampaignSharedSetServiceGrpcTransport]): 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_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=campaign_shared_set_service_grpc_transport. + CampaignSharedSetServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.') + self.transport = transport + else: + self.transport = campaign_shared_set_service_grpc_transport.CampaignSharedSetServiceGrpcTransport( + 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_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 campaign shared set in full detail. + + Args: + resource_name (str): 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. + 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.CampaignSharedSet` 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_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, + ) + + 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) + + def mutate_campaign_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 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. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v1.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. + 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.MutateCampaignSharedSetsResponse` 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_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, + ) + + request = campaign_shared_set_service_pb2.MutateCampaignSharedSetsRequest( + customer_id=customer_id, + operations=operations, + partial_failure=partial_failure, + validate_only=validate_only, + ) + return self._inner_api_calls['mutate_campaign_shared_sets']( + request, retry=retry, timeout=timeout, metadata=metadata) 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 new file mode 100644 index 000000000..6bdb9c0b2 --- /dev/null +++ b/google/ads/google_ads/v1/services/campaign_shared_set_service_client_config.py @@ -0,0 +1,33 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.CampaignSharedSetService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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/v1/services/carrier_constant_service_client.py new file mode 100644 index 000000000..3f28fcf82 --- /dev/null +++ b/google/ads/google_ads/v1/services/carrier_constant_service_client.py @@ -0,0 +1,215 @@ +# -*- 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 CarrierConstantService 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 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 + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', ).version + + +class CarrierConstantServiceClient(object): + """Service to fetch carrier 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.v1.services.CarrierConstantService' + + @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: + CarrierConstantServiceClient: 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 carrier_constant_path(cls, carrier_constant): + """Return a fully-qualified carrier_constant string.""" + return google.api_core.path_template.expand( + 'carrierConstants/{carrier_constant}', + carrier_constant=carrier_constant, + ) + + def __init__(self, + transport=None, + channel=None, + credentials=None, + client_config=None, + client_info=None): + """Constructor. + + Args: + transport (Union[~.CarrierConstantServiceGrpcTransport, + Callable[[~.Credentials, type], ~.CarrierConstantServiceGrpcTransport]): 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 = carrier_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=carrier_constant_service_grpc_transport. + CarrierConstantServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.') + self.transport = transport + else: + self.transport = carrier_constant_service_grpc_transport.CarrierConstantServiceGrpcTransport( + 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_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. + 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.CarrierConstant` 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_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, + ) + + 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) 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 new file mode 100644 index 000000000..fe8726702 --- /dev/null +++ b/google/ads/google_ads/v1/services/carrier_constant_service_client_config.py @@ -0,0 +1,28 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.CarrierConstantService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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/v1/services/change_status_service_client.py new file mode 100644 index 000000000..dd1100d25 --- /dev/null +++ b/google/ads/google_ads/v1/services/change_status_service_client.py @@ -0,0 +1,216 @@ +# -*- 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 ChangeStatusService 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 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 + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', ).version + + +class ChangeStatusServiceClient(object): + """Service to fetch change statuses.""" + + 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.ChangeStatusService' + + @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: + ChangeStatusServiceClient: 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 change_status_path(cls, customer, change_status): + """Return a fully-qualified change_status string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/changeStatus/{change_status}', + customer=customer, + change_status=change_status, + ) + + def __init__(self, + transport=None, + channel=None, + credentials=None, + client_config=None, + client_info=None): + """Constructor. + + Args: + transport (Union[~.ChangeStatusServiceGrpcTransport, + Callable[[~.Credentials, type], ~.ChangeStatusServiceGrpcTransport]): 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 = change_status_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=change_status_service_grpc_transport. + ChangeStatusServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.') + self.transport = transport + else: + self.transport = change_status_service_grpc_transport.ChangeStatusServiceGrpcTransport( + 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_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. + 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.ChangeStatus` 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_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, + ) + + 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) 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 new file mode 100644 index 000000000..1d0d6f032 --- /dev/null +++ b/google/ads/google_ads/v1/services/change_status_service_client_config.py @@ -0,0 +1,28 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.ChangeStatusService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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/v1/services/click_view_service_client.py new file mode 100644 index 000000000..ba300e53a --- /dev/null +++ b/google/ads/google_ads/v1/services/click_view_service_client.py @@ -0,0 +1,215 @@ +# -*- 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 ClickViewService 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 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 + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', ).version + + +class ClickViewServiceClient(object): + """Service to fetch click 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.v1.services.ClickViewService' + + @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: + ClickViewServiceClient: 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 click_view_path(cls, customer, click_view): + """Return a fully-qualified click_view string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/clickViews/{click_view}', + customer=customer, + click_view=click_view, + ) + + def __init__(self, + transport=None, + channel=None, + credentials=None, + client_config=None, + client_info=None): + """Constructor. + + Args: + transport (Union[~.ClickViewServiceGrpcTransport, + Callable[[~.Credentials, type], ~.ClickViewServiceGrpcTransport]): 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 = click_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=click_view_service_grpc_transport. + ClickViewServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.') + self.transport = transport + else: + self.transport = click_view_service_grpc_transport.ClickViewServiceGrpcTransport( + 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_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. + 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.ClickView` 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_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, + ) + + 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) 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 new file mode 100644 index 000000000..5a4c3500c --- /dev/null +++ b/google/ads/google_ads/v1/services/click_view_service_client_config.py @@ -0,0 +1,28 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.ClickViewService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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 new file mode 100644 index 000000000..c1aaa0ac8 --- /dev/null +++ b/google/ads/google_ads/v1/services/conversion_action_service_client.py @@ -0,0 +1,281 @@ +# -*- 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 new file mode 100644 index 000000000..9280f3cdc --- /dev/null +++ b/google/ads/google_ads/v1/services/conversion_action_service_client_config.py @@ -0,0 +1,33 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.ConversionActionService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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_upload_service_client.py b/google/ads/google_ads/v1/services/conversion_upload_service_client.py new file mode 100644 index 000000000..c4209839c --- /dev/null +++ b/google/ads/google_ads/v1/services/conversion_upload_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.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, + 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. + 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, + ) + return self._inner_api_calls['upload_click_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 new file mode 100644 index 000000000..a4b23f963 --- /dev/null +++ b/google/ads/google_ads/v1/services/conversion_upload_service_client_config.py @@ -0,0 +1,28 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.ConversionUploadService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "methods": { + "UploadClickConversions": { + "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 new file mode 100644 index 000000000..7895b8ed4 --- /dev/null +++ b/google/ads/google_ads/v1/services/custom_interest_service_client.py @@ -0,0 +1,274 @@ +# -*- 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 new file mode 100644 index 000000000..c330ef468 --- /dev/null +++ b/google/ads/google_ads/v1/services/custom_interest_service_client_config.py @@ -0,0 +1,33 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.CustomInterestService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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 new file mode 100644 index 000000000..7bb5d0d8b --- /dev/null +++ b/google/ads/google_ads/v1/services/customer_client_link_service_client.py @@ -0,0 +1,271 @@ +# -*- 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 new file mode 100644 index 000000000..e5062700c --- /dev/null +++ b/google/ads/google_ads/v1/services/customer_client_link_service_client_config.py @@ -0,0 +1,33 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.CustomerClientLinkService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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/v1/services/customer_client_service_client.py new file mode 100644 index 000000000..c9336b1e1 --- /dev/null +++ b/google/ads/google_ads/v1/services/customer_client_service_client.py @@ -0,0 +1,216 @@ +# -*- 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 CustomerClientService 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_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 + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', ).version + + +class CustomerClientServiceClient(object): + """Service to get clients in a customer's hierarchy.""" + + 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.CustomerClientService' + + @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: + CustomerClientServiceClient: 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_path(cls, customer, customer_client): + """Return a fully-qualified customer_client string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/customerClients/{customer_client}', + customer=customer, + customer_client=customer_client, + ) + + def __init__(self, + transport=None, + channel=None, + credentials=None, + client_config=None, + client_info=None): + """Constructor. + + Args: + transport (Union[~.CustomerClientServiceGrpcTransport, + Callable[[~.Credentials, type], ~.CustomerClientServiceGrpcTransport]): 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_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_service_grpc_transport. + CustomerClientServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.') + self.transport = transport + else: + self.transport = customer_client_service_grpc_transport.CustomerClientServiceGrpcTransport( + 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(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. + 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.CustomerClient` 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' 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, + ) + + 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) 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 new file mode 100644 index 000000000..f3ff8505b --- /dev/null +++ b/google/ads/google_ads/v1/services/customer_client_service_client_config.py @@ -0,0 +1,28 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.CustomerClientService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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 new file mode 100644 index 000000000..4a76e09e6 --- /dev/null +++ b/google/ads/google_ads/v1/services/customer_extension_setting_service_client.py @@ -0,0 +1,286 @@ +# -*- 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 new file mode 100644 index 000000000..11f71268b --- /dev/null +++ b/google/ads/google_ads/v1/services/customer_extension_setting_service_client_config.py @@ -0,0 +1,33 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.CustomerExtensionSettingService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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 new file mode 100644 index 000000000..6e8bb1300 --- /dev/null +++ b/google/ads/google_ads/v1/services/customer_feed_service_client.py @@ -0,0 +1,280 @@ +# -*- 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 new file mode 100644 index 000000000..0f2e5b61e --- /dev/null +++ b/google/ads/google_ads/v1/services/customer_feed_service_client_config.py @@ -0,0 +1,33 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.CustomerFeedService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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 new file mode 100644 index 000000000..dd2ef7d4d --- /dev/null +++ b/google/ads/google_ads/v1/services/customer_label_service_client.py @@ -0,0 +1,280 @@ +# -*- 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 new file mode 100644 index 000000000..826a05211 --- /dev/null +++ b/google/ads/google_ads/v1/services/customer_label_service_client_config.py @@ -0,0 +1,33 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.CustomerLabelService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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 new file mode 100644 index 000000000..68b7ee088 --- /dev/null +++ b/google/ads/google_ads/v1/services/customer_manager_link_service_client.py @@ -0,0 +1,271 @@ +# -*- 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 new file mode 100644 index 000000000..4cc176a6a --- /dev/null +++ b/google/ads/google_ads/v1/services/customer_manager_link_service_client_config.py @@ -0,0 +1,33 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.CustomerManagerLinkService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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 new file mode 100644 index 000000000..cfd68b774 --- /dev/null +++ b/google/ads/google_ads/v1/services/customer_negative_criterion_service_client.py @@ -0,0 +1,283 @@ +# -*- 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 new file mode 100644 index 000000000..86c8bec7d --- /dev/null +++ b/google/ads/google_ads/v1/services/customer_negative_criterion_service_client_config.py @@ -0,0 +1,33 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.CustomerNegativeCriterionService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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 new file mode 100644 index 000000000..5e5a72c11 --- /dev/null +++ b/google/ads/google_ads/v1/services/customer_service_client.py @@ -0,0 +1,368 @@ +# -*- 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 new file mode 100644 index 000000000..4ff1c2c52 --- /dev/null +++ b/google/ads/google_ads/v1/services/customer_service_client_config.py @@ -0,0 +1,43 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.CustomerService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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/v1/services/detail_placement_view_service_client.py new file mode 100644 index 000000000..869e51fe6 --- /dev/null +++ b/google/ads/google_ads/v1/services/detail_placement_view_service_client.py @@ -0,0 +1,217 @@ +# -*- 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 DetailPlacementViewService 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 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 + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', ).version + + +class DetailPlacementViewServiceClient(object): + """Service to fetch Detail Placement 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.v1.services.DetailPlacementViewService' + + @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: + DetailPlacementViewServiceClient: 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 detail_placement_view_path(cls, customer, detail_placement_view): + """Return a fully-qualified detail_placement_view string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/detailPlacementViews/{detail_placement_view}', + customer=customer, + detail_placement_view=detail_placement_view, + ) + + def __init__(self, + transport=None, + channel=None, + credentials=None, + client_config=None, + client_info=None): + """Constructor. + + Args: + transport (Union[~.DetailPlacementViewServiceGrpcTransport, + Callable[[~.Credentials, type], ~.DetailPlacementViewServiceGrpcTransport]): 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 = detail_placement_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=detail_placement_view_service_grpc_transport. + DetailPlacementViewServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.') + self.transport = transport + else: + self.transport = detail_placement_view_service_grpc_transport.DetailPlacementViewServiceGrpcTransport( + 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_detail_placement_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 Detail Placement view in full detail. + + Args: + resource_name (str): 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. + 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.DetailPlacementView` 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_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, + ) + + 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) 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 new file mode 100644 index 000000000..723eb8ac7 --- /dev/null +++ b/google/ads/google_ads/v1/services/detail_placement_view_service_client_config.py @@ -0,0 +1,28 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.DetailPlacementViewService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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/v1/services/display_keyword_view_service_client.py new file mode 100644 index 000000000..873702254 --- /dev/null +++ b/google/ads/google_ads/v1/services/display_keyword_view_service_client.py @@ -0,0 +1,217 @@ +# -*- 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 DisplayKeywordViewService 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 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 + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', ).version + + +class DisplayKeywordViewServiceClient(object): + """Service to manage display keyword 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.v1.services.DisplayKeywordViewService' + + @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: + DisplayKeywordViewServiceClient: 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 display_keyword_view_path(cls, customer, display_keyword_view): + """Return a fully-qualified display_keyword_view string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/displayKeywordViews/{display_keyword_view}', + customer=customer, + display_keyword_view=display_keyword_view, + ) + + def __init__(self, + transport=None, + channel=None, + credentials=None, + client_config=None, + client_info=None): + """Constructor. + + Args: + transport (Union[~.DisplayKeywordViewServiceGrpcTransport, + Callable[[~.Credentials, type], ~.DisplayKeywordViewServiceGrpcTransport]): 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 = display_keyword_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=display_keyword_view_service_grpc_transport. + DisplayKeywordViewServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.') + self.transport = transport + else: + self.transport = display_keyword_view_service_grpc_transport.DisplayKeywordViewServiceGrpcTransport( + 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_display_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 display keyword view in full detail. + + Args: + resource_name (str): 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. + 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.DisplayKeywordView` 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_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, + ) + + 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) 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 new file mode 100644 index 000000000..b38f85efd --- /dev/null +++ b/google/ads/google_ads/v1/services/display_keyword_view_service_client_config.py @@ -0,0 +1,28 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.DisplayKeywordViewService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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.py b/google/ads/google_ads/v1/services/domain_category_service_client.py new file mode 100644 index 000000000..0610343d7 --- /dev/null +++ b/google/ads/google_ads/v1/services/domain_category_service_client.py @@ -0,0 +1,216 @@ +# -*- 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 DomainCategoryService 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 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 + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', ).version + + +class DomainCategoryServiceClient(object): + """Service to fetch domain categories.""" + + 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.DomainCategoryService' + + @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: + DomainCategoryServiceClient: 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 domain_category_path(cls, customer, domain_category): + """Return a fully-qualified domain_category string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/domainCategories/{domain_category}', + customer=customer, + domain_category=domain_category, + ) + + def __init__(self, + transport=None, + channel=None, + credentials=None, + client_config=None, + client_info=None): + """Constructor. + + Args: + transport (Union[~.DomainCategoryServiceGrpcTransport, + Callable[[~.Credentials, type], ~.DomainCategoryServiceGrpcTransport]): 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 = domain_category_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=domain_category_service_grpc_transport. + DomainCategoryServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.') + self.transport = transport + else: + self.transport = domain_category_service_grpc_transport.DomainCategoryServiceGrpcTransport( + 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_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. + 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.DomainCategory` 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_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, + ) + + 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) 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 new file mode 100644 index 000000000..984a763ec --- /dev/null +++ b/google/ads/google_ads/v1/services/domain_category_service_client_config.py @@ -0,0 +1,28 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.DomainCategoryService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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/v1/services/dynamic_search_ads_search_term_view_service_client.py new file mode 100644 index 000000000..dc12923c3 --- /dev/null +++ b/google/ads/google_ads/v1/services/dynamic_search_ads_search_term_view_service_client.py @@ -0,0 +1,221 @@ +# -*- 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 DynamicSearchAdsSearchTermViewService 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 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 + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', ).version + + +class DynamicSearchAdsSearchTermViewServiceClient(object): + """Service to fetch dynamic search ads 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.v1.services.DynamicSearchAdsSearchTermViewService' + + @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: + DynamicSearchAdsSearchTermViewServiceClient: 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 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, + ) + + def __init__(self, + transport=None, + channel=None, + credentials=None, + client_config=None, + client_info=None): + """Constructor. + + Args: + transport (Union[~.DynamicSearchAdsSearchTermViewServiceGrpcTransport, + Callable[[~.Credentials, type], ~.DynamicSearchAdsSearchTermViewServiceGrpcTransport]): 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 = 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) + + # 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= + 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.') + self.transport = transport + else: + self.transport = dynamic_search_ads_search_term_view_service_grpc_transport.DynamicSearchAdsSearchTermViewServiceGrpcTransport( + 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_dynamic_search_ads_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 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. + 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.DynamicSearchAdsSearchTermView` 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_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, + ) + + 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) 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 new file mode 100644 index 000000000..310e99772 --- /dev/null +++ b/google/ads/google_ads/v1/services/dynamic_search_ads_search_term_view_service_client_config.py @@ -0,0 +1,29 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.DynamicSearchAdsSearchTermViewService": + { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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/v1/services/enums.py new file mode 100644 index 000000000..4fb5f1007 --- /dev/null +++ b/google/ads/google_ads/v1/services/enums.py @@ -0,0 +1,9066 @@ +# -*- 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. +"""Wrappers for protocol buffer enum types.""" + +import enum + + +class AccessReasonEnum(object): + class AccessReason(enum.IntEnum): + """ + Enum describing possible access reasons. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + OWNED (int): The resource is owned by the user. + SHARED (int): The resource is shared to the user. + LICENSED (int): The resource is licensed to the user. + SUBSCRIBED (int): The user subscribed to the resource. + AFFILIATED (int): The resource is accessible to the user. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + OWNED = 2 + SHARED = 3 + LICENSED = 4 + SUBSCRIBED = 5 + AFFILIATED = 6 + + +class AccountBudgetProposalErrorEnum(object): + class AccountBudgetProposalError(enum.IntEnum): + """ + Enum describing possible account budget proposal errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + FIELD_MASK_NOT_ALLOWED (int): The field mask must be empty for create/end/remove proposals. + IMMUTABLE_FIELD (int): The field cannot be set because of the proposal type. + REQUIRED_FIELD_MISSING (int): The field is required because of the proposal type. + CANNOT_CANCEL_APPROVED_PROPOSAL (int): Proposals that have been approved cannot be cancelled. + CANNOT_REMOVE_UNAPPROVED_BUDGET (int): Budgets that haven't been approved cannot be removed. + CANNOT_REMOVE_RUNNING_BUDGET (int): Budgets that are currently running cannot be removed. + CANNOT_END_UNAPPROVED_BUDGET (int): Budgets that haven't been approved cannot be truncated. + CANNOT_END_INACTIVE_BUDGET (int): Only budgets that are currently running can be truncated. + BUDGET_NAME_REQUIRED (int): All budgets must have names. + CANNOT_UPDATE_OLD_BUDGET (int): Expired budgets cannot be edited after a sufficient amount of time has + passed. + CANNOT_END_IN_PAST (int): It is not permissible a propose a new budget that ends in the past. + CANNOT_EXTEND_END_TIME (int): An expired budget cannot be extended to overlap with the running budget. + PURCHASE_ORDER_NUMBER_REQUIRED (int): A purchase order number is required. + PENDING_UPDATE_PROPOSAL_EXISTS (int): Budgets that have a pending update cannot be updated. + MULTIPLE_BUDGETS_NOT_ALLOWED_FOR_UNAPPROVED_BILLING_SETUP (int): Cannot propose more than one budget when the corresponding billing setup + hasn't been approved. + CANNOT_UPDATE_START_TIME_FOR_STARTED_BUDGET (int): Cannot update the start time of a budget that has already started. + SPENDING_LIMIT_LOWER_THAN_ACCRUED_COST_NOT_ALLOWED (int): Cannot update the spending limit of a budget with an amount lower than + what has already been spent. + UPDATE_IS_NO_OP (int): Cannot propose a budget update without actually changing any fields. + END_TIME_MUST_FOLLOW_START_TIME (int): The end time must come after the start time. + BUDGET_DATE_RANGE_INCOMPATIBLE_WITH_BILLING_SETUP (int): The budget's date range must fall within the date range of its billing + 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. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + FIELD_MASK_NOT_ALLOWED = 2 + IMMUTABLE_FIELD = 3 + REQUIRED_FIELD_MISSING = 4 + CANNOT_CANCEL_APPROVED_PROPOSAL = 5 + CANNOT_REMOVE_UNAPPROVED_BUDGET = 6 + CANNOT_REMOVE_RUNNING_BUDGET = 7 + CANNOT_END_UNAPPROVED_BUDGET = 8 + CANNOT_END_INACTIVE_BUDGET = 9 + BUDGET_NAME_REQUIRED = 10 + CANNOT_UPDATE_OLD_BUDGET = 11 + CANNOT_END_IN_PAST = 12 + CANNOT_EXTEND_END_TIME = 13 + PURCHASE_ORDER_NUMBER_REQUIRED = 14 + PENDING_UPDATE_PROPOSAL_EXISTS = 15 + MULTIPLE_BUDGETS_NOT_ALLOWED_FOR_UNAPPROVED_BILLING_SETUP = 16 + CANNOT_UPDATE_START_TIME_FOR_STARTED_BUDGET = 17 + SPENDING_LIMIT_LOWER_THAN_ACCRUED_COST_NOT_ALLOWED = 18 + UPDATE_IS_NO_OP = 19 + END_TIME_MUST_FOLLOW_START_TIME = 20 + BUDGET_DATE_RANGE_INCOMPATIBLE_WITH_BILLING_SETUP = 21 + NOT_AUTHORIZED = 22 + INVALID_BILLING_SETUP = 23 + + +class AccountBudgetProposalStatusEnum(object): + class AccountBudgetProposalStatus(enum.IntEnum): + """ + The possible statuses of an AccountBudgetProposal. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + PENDING (int): The proposal is pending approval. + APPROVED_HELD (int): The proposal has been approved but the corresponding billing setup + has not. This can occur for proposals that set up the first budget + when signing up for billing or when performing a change of bill-to + operation. + APPROVED (int): The proposal has been approved. + CANCELLED (int): The proposal has been cancelled by the user. + REJECTED (int): The proposal has been rejected by the user, e.g. by rejecting an + acceptance email. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + PENDING = 2 + APPROVED_HELD = 3 + APPROVED = 4 + CANCELLED = 5 + REJECTED = 6 + + +class AccountBudgetProposalTypeEnum(object): + class AccountBudgetProposalType(enum.IntEnum): + """ + The possible types of an AccountBudgetProposal. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + CREATE (int): Identifies a request to create a new budget. + UPDATE (int): Identifies a request to edit an existing budget. + END (int): Identifies a request to end a budget that has already started. + REMOVE (int): Identifies a request to remove a budget that hasn't started yet. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + CREATE = 2 + UPDATE = 3 + END = 4 + REMOVE = 5 + + +class AccountBudgetStatusEnum(object): + class AccountBudgetStatus(enum.IntEnum): + """ + The possible statuses of an AccountBudget. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + PENDING (int): The account budget is pending approval. + APPROVED (int): The account budget has been approved. + CANCELLED (int): The account budget has been cancelled by the user. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + PENDING = 2 + APPROVED = 3 + CANCELLED = 4 + + +class AdCustomizerErrorEnum(object): + class AdCustomizerError(enum.IntEnum): + """ + Enum describing possible ad customizer errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + COUNTDOWN_INVALID_DATE_FORMAT (int): Invalid date argument in countdown function. + COUNTDOWN_DATE_IN_PAST (int): Countdown end date is in the past. + COUNTDOWN_INVALID_LOCALE (int): Invalid locale string in countdown function. + COUNTDOWN_INVALID_START_DAYS_BEFORE (int): Days-before argument to countdown function is not positive. + UNKNOWN_USER_LIST (int): A user list referenced in an IF function does not exist. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + COUNTDOWN_INVALID_DATE_FORMAT = 2 + COUNTDOWN_DATE_IN_PAST = 3 + COUNTDOWN_INVALID_LOCALE = 4 + COUNTDOWN_INVALID_START_DAYS_BEFORE = 5 + UNKNOWN_USER_LIST = 6 + + +class AdCustomizerPlaceholderFieldEnum(object): + class AdCustomizerPlaceholderField(enum.IntEnum): + """ + Possible values for Ad Customizers placeholder fields. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + INTEGER (int): Data Type: INT64. Integer value to be inserted. + PRICE (int): Data Type: STRING. Price value to be inserted. + DATE (int): Data Type: DATE\_TIME. Date value to be inserted. + STRING (int): Data Type: STRING. String value to be inserted. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + INTEGER = 2 + PRICE = 3 + DATE = 4 + STRING = 5 + + +class AdErrorEnum(object): + class AdError(enum.IntEnum): + """ + Enum describing possible ad errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + AD_CUSTOMIZERS_NOT_SUPPORTED_FOR_AD_TYPE (int): Ad customizers are not supported for ad type. + APPROXIMATELY_TOO_LONG (int): Estimating character sizes the string is too long. + APPROXIMATELY_TOO_SHORT (int): Estimating character sizes the string is too short. + BAD_SNIPPET (int): There is a problem with the snippet. + CANNOT_MODIFY_AD (int): Cannot modify an ad. + CANNOT_SET_BUSINESS_NAME_IF_URL_SET (int): business name and url cannot be set at the same time + CANNOT_SET_FIELD (int): The specified field is incompatible with this ad's type or settings. + CANNOT_SET_FIELD_WITH_ORIGIN_AD_ID_SET (int): Cannot set field when originAdId is set. + CANNOT_SET_FIELD_WITH_AD_ID_SET_FOR_SHARING (int): Cannot set field when an existing ad id is set for sharing. + CANNOT_SET_ALLOW_FLEXIBLE_COLOR_FALSE (int): Cannot set allowFlexibleColor false if no color is provided by user. + CANNOT_SET_COLOR_CONTROL_WHEN_NATIVE_FORMAT_SETTING (int): When user select native, no color control is allowed because we will + always respect publisher color for native format serving. + CANNOT_SET_URL (int): Cannot specify a url for the ad type + CANNOT_SET_WITHOUT_FINAL_URLS (int): Cannot specify a tracking or mobile url without also setting final urls + CANNOT_SET_WITH_FINAL_URLS (int): Cannot specify a legacy url and a final url simultaneously + CANNOT_SET_WITH_URL_DATA (int): Cannot specify a urls in UrlData and in template fields simultaneously. + CANNOT_USE_AD_SUBCLASS_FOR_OPERATOR (int): This operator cannot be used with a subclass of Ad. + CUSTOMER_NOT_APPROVED_MOBILEADS (int): Customer is not approved for mobile ads. + CUSTOMER_NOT_APPROVED_THIRDPARTY_ADS (int): Customer is not approved for 3PAS richmedia ads. + CUSTOMER_NOT_APPROVED_THIRDPARTY_REDIRECT_ADS (int): Customer is not approved for 3PAS redirect richmedia (Ad Exchange) ads. + CUSTOMER_NOT_ELIGIBLE (int): Not an eligible customer + CUSTOMER_NOT_ELIGIBLE_FOR_UPDATING_BEACON_URL (int): Customer is not eligible for updating beacon url + DIMENSION_ALREADY_IN_UNION (int): There already exists an ad with the same dimensions in the union. + DIMENSION_MUST_BE_SET (int): Ad's dimension must be set before setting union dimension. + DIMENSION_NOT_IN_UNION (int): Ad's dimension must be included in the union dimensions. + DISPLAY_URL_CANNOT_BE_SPECIFIED (int): Display Url cannot be specified (applies to Ad Exchange Ads) + DOMESTIC_PHONE_NUMBER_FORMAT (int): Telephone number contains invalid characters or invalid format. Please + re-enter your number using digits (0-9), dashes (-), and parentheses + only. + EMERGENCY_PHONE_NUMBER (int): Emergency telephone numbers are not allowed. Please enter a valid + domestic phone number to connect customers to your business. + EMPTY_FIELD (int): A required field was not specified or is an empty string. + FEED_ATTRIBUTE_MUST_HAVE_MAPPING_FOR_TYPE_ID (int): A feed attribute referenced in an ad customizer tag is not in the ad + customizer mapping for the feed. + FEED_ATTRIBUTE_MAPPING_TYPE_MISMATCH (int): The ad customizer field mapping for the feed attribute does not match the + expected field type. + ILLEGAL_AD_CUSTOMIZER_TAG_USE (int): The use of ad customizer tags in the ad text is disallowed. Details in + trigger. + ILLEGAL_TAG_USE (int): Tags of the form {PH\_x}, where x is a number, are disallowed in ad + text. + INCONSISTENT_DIMENSIONS (int): The dimensions of the ad are specified or derived in multiple ways and + are not consistent. + INCONSISTENT_STATUS_IN_TEMPLATE_UNION (int): The status cannot differ among template ads of the same union. + INCORRECT_LENGTH (int): The length of the string is not valid. + INELIGIBLE_FOR_UPGRADE (int): The ad is ineligible for upgrade. + INVALID_AD_ADDRESS_CAMPAIGN_TARGET (int): User cannot create mobile ad for countries targeted in specified + campaign. + INVALID_AD_TYPE (int): Invalid Ad type. A specific type of Ad is required. + INVALID_ATTRIBUTES_FOR_MOBILE_IMAGE (int): Headline, description or phone cannot be present when creating mobile + image ad. + INVALID_ATTRIBUTES_FOR_MOBILE_TEXT (int): Image cannot be present when creating mobile text ad. + INVALID_CALL_TO_ACTION_TEXT (int): Invalid call to action text. + INVALID_CHARACTER_FOR_URL (int): Invalid character in URL. + INVALID_COUNTRY_CODE (int): Creative's country code is not valid. + INVALID_EXPANDED_DYNAMIC_SEARCH_AD_TAG (int): Invalid use of Expanded Dynamic Search Ads tags ({lpurl} etc.) + INVALID_INPUT (int): An input error whose real reason was not properly mapped (should not + happen). + INVALID_MARKUP_LANGUAGE (int): An invalid markup language was entered. + INVALID_MOBILE_CARRIER (int): An invalid mobile carrier was entered. + INVALID_MOBILE_CARRIER_TARGET (int): Specified mobile carriers target a country not targeted by the campaign. + INVALID_NUMBER_OF_ELEMENTS (int): Wrong number of elements for given element type + INVALID_PHONE_NUMBER_FORMAT (int): The format of the telephone number is incorrect. Please re-enter the + number using the correct format. + INVALID_RICH_MEDIA_CERTIFIED_VENDOR_FORMAT_ID (int): The certified vendor format id is incorrect. + INVALID_TEMPLATE_DATA (int): The template ad data contains validation errors. + INVALID_TEMPLATE_ELEMENT_FIELD_TYPE (int): The template field doesn't have have the correct type. + INVALID_TEMPLATE_ID (int): Invalid template id. + LINE_TOO_WIDE (int): After substituting replacement strings, the line is too wide. + MISSING_AD_CUSTOMIZER_MAPPING (int): The feed referenced must have ad customizer mapping to be used in a + customizer tag. + MISSING_ADDRESS_COMPONENT (int): Missing address component in template element address field. + MISSING_ADVERTISEMENT_NAME (int): An ad name must be entered. + MISSING_BUSINESS_NAME (int): Business name must be entered. + MISSING_DESCRIPTION1 (int): Description (line 2) must be entered. + MISSING_DESCRIPTION2 (int): Description (line 3) must be entered. + MISSING_DESTINATION_URL_TAG (int): The destination url must contain at least one tag (e.g. {lpurl}) + MISSING_LANDING_PAGE_URL_TAG (int): The tracking url template of ExpandedDynamicSearchAd must contain at + least one tag. (e.g. {lpurl}) + MISSING_DIMENSION (int): A valid dimension must be specified for this ad. + MISSING_DISPLAY_URL (int): A display URL must be entered. + MISSING_HEADLINE (int): Headline must be entered. + MISSING_HEIGHT (int): A height must be entered. + MISSING_IMAGE (int): An image must be entered. + MISSING_MARKETING_IMAGE_OR_PRODUCT_VIDEOS (int): Marketing image or product videos are required. + MISSING_MARKUP_LANGUAGES (int): The markup language in which your site is written must be entered. + MISSING_MOBILE_CARRIER (int): A mobile carrier must be entered. + MISSING_PHONE (int): Phone number must be entered. + MISSING_REQUIRED_TEMPLATE_FIELDS (int): Missing required template fields + MISSING_TEMPLATE_FIELD_VALUE (int): Missing a required field value + MISSING_TEXT (int): The ad must have text. + MISSING_VISIBLE_URL (int): A visible URL must be entered. + MISSING_WIDTH (int): A width must be entered. + MULTIPLE_DISTINCT_FEEDS_UNSUPPORTED (int): Only 1 feed can be used as the source of ad customizer substitutions in a + single ad. + MUST_USE_TEMP_AD_UNION_ID_ON_ADD (int): TempAdUnionId must be use when adding template ads. + TOO_LONG (int): The string has too many characters. + TOO_SHORT (int): The string has too few characters. + UNION_DIMENSIONS_CANNOT_CHANGE (int): Ad union dimensions cannot change for saved ads. + UNKNOWN_ADDRESS_COMPONENT (int): Address component is not {country, lat, lng}. + UNKNOWN_FIELD_NAME (int): Unknown unique field name + UNKNOWN_UNIQUE_NAME (int): Unknown unique name (template element type specifier) + UNSUPPORTED_DIMENSIONS (int): Unsupported ad dimension + URL_INVALID_SCHEME (int): URL starts with an invalid scheme. + URL_INVALID_TOP_LEVEL_DOMAIN (int): URL ends with an invalid top-level domain name. + URL_MALFORMED (int): URL contains illegal characters. + URL_NO_HOST (int): URL must contain a host name. + URL_NOT_EQUIVALENT (int): URL not equivalent during upgrade. + URL_HOST_NAME_TOO_LONG (int): URL host name too long to be stored as visible URL (applies to Ad + Exchange ads) + URL_NO_SCHEME (int): URL must start with a scheme. + URL_NO_TOP_LEVEL_DOMAIN (int): URL should end in a valid domain extension, such as .com or .net. + URL_PATH_NOT_ALLOWED (int): URL must not end with a path. + URL_PORT_NOT_ALLOWED (int): URL must not specify a port. + URL_QUERY_NOT_ALLOWED (int): URL must not contain a query. + URL_SCHEME_BEFORE_EXPANDED_DYNAMIC_SEARCH_AD_TAG (int): A url scheme is not allowed in front of tag in tracking url template + (e.g. http://{lpurl}) + USER_DOES_NOT_HAVE_ACCESS_TO_TEMPLATE (int): The user does not have permissions to create a template ad for the given + template. + INCONSISTENT_EXPANDABLE_SETTINGS (int): Expandable setting is inconsistent/wrong. For example, an AdX ad is + invalid if it has a expandable vendor format but no expanding directions + specified, or expanding directions is specified, but the vendor format is + not expandable. + INVALID_FORMAT (int): Format is invalid + INVALID_FIELD_TEXT (int): The text of this field did not match a pattern of allowed values. + ELEMENT_NOT_PRESENT (int): Template element is mising + IMAGE_ERROR (int): Error occurred during image processing + VALUE_NOT_IN_RANGE (int): The value is not within the valid range + FIELD_NOT_PRESENT (int): Template element field is not present + ADDRESS_NOT_COMPLETE (int): Address is incomplete + ADDRESS_INVALID (int): Invalid address + VIDEO_RETRIEVAL_ERROR (int): Error retrieving specified video + AUDIO_ERROR (int): Error processing audio + INVALID_YOUTUBE_DISPLAY_URL (int): Display URL is incorrect for YouTube PYV ads + TOO_MANY_PRODUCT_IMAGES (int): Too many product Images in GmailAd + TOO_MANY_PRODUCT_VIDEOS (int): Too many product Videos in GmailAd + INCOMPATIBLE_AD_TYPE_AND_DEVICE_PREFERENCE (int): The device preference is not compatible with the ad type + CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY (int): Call tracking is not supported for specified country. + CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED (int): Carrier specific short number is not allowed. + DISALLOWED_NUMBER_TYPE (int): Specified phone number type is disallowed. + PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY (int): Phone number not supported for country. + PHONE_NUMBER_NOT_SUPPORTED_WITH_CALLTRACKING_FOR_COUNTRY (int): Phone number not supported with call tracking enabled for country. + PREMIUM_RATE_NUMBER_NOT_ALLOWED (int): Premium rate phone number is not allowed. + VANITY_PHONE_NUMBER_NOT_ALLOWED (int): Vanity phone number is not allowed. + INVALID_CALL_CONVERSION_TYPE_ID (int): Invalid call conversion type id. + CANNOT_DISABLE_CALL_CONVERSION_AND_SET_CONVERSION_TYPE_ID (int): Cannot disable call conversion and set conversion type id. + CANNOT_SET_PATH2_WITHOUT_PATH1 (int): Cannot set path2 without path1. + MISSING_DYNAMIC_SEARCH_ADS_SETTING_DOMAIN_NAME (int): Missing domain name in campaign setting when adding expanded dynamic + search ad. + INCOMPATIBLE_WITH_RESTRICTION_TYPE (int): The associated ad is not compatible with restriction type. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + AD_CUSTOMIZERS_NOT_SUPPORTED_FOR_AD_TYPE = 2 + APPROXIMATELY_TOO_LONG = 3 + APPROXIMATELY_TOO_SHORT = 4 + BAD_SNIPPET = 5 + CANNOT_MODIFY_AD = 6 + CANNOT_SET_BUSINESS_NAME_IF_URL_SET = 7 + CANNOT_SET_FIELD = 8 + CANNOT_SET_FIELD_WITH_ORIGIN_AD_ID_SET = 9 + CANNOT_SET_FIELD_WITH_AD_ID_SET_FOR_SHARING = 10 + CANNOT_SET_ALLOW_FLEXIBLE_COLOR_FALSE = 11 + CANNOT_SET_COLOR_CONTROL_WHEN_NATIVE_FORMAT_SETTING = 12 + CANNOT_SET_URL = 13 + CANNOT_SET_WITHOUT_FINAL_URLS = 14 + CANNOT_SET_WITH_FINAL_URLS = 15 + CANNOT_SET_WITH_URL_DATA = 17 + CANNOT_USE_AD_SUBCLASS_FOR_OPERATOR = 18 + CUSTOMER_NOT_APPROVED_MOBILEADS = 19 + CUSTOMER_NOT_APPROVED_THIRDPARTY_ADS = 20 + CUSTOMER_NOT_APPROVED_THIRDPARTY_REDIRECT_ADS = 21 + CUSTOMER_NOT_ELIGIBLE = 22 + CUSTOMER_NOT_ELIGIBLE_FOR_UPDATING_BEACON_URL = 23 + DIMENSION_ALREADY_IN_UNION = 24 + DIMENSION_MUST_BE_SET = 25 + DIMENSION_NOT_IN_UNION = 26 + DISPLAY_URL_CANNOT_BE_SPECIFIED = 27 + DOMESTIC_PHONE_NUMBER_FORMAT = 28 + EMERGENCY_PHONE_NUMBER = 29 + EMPTY_FIELD = 30 + FEED_ATTRIBUTE_MUST_HAVE_MAPPING_FOR_TYPE_ID = 31 + FEED_ATTRIBUTE_MAPPING_TYPE_MISMATCH = 32 + ILLEGAL_AD_CUSTOMIZER_TAG_USE = 33 + ILLEGAL_TAG_USE = 34 + INCONSISTENT_DIMENSIONS = 35 + INCONSISTENT_STATUS_IN_TEMPLATE_UNION = 36 + INCORRECT_LENGTH = 37 + INELIGIBLE_FOR_UPGRADE = 38 + INVALID_AD_ADDRESS_CAMPAIGN_TARGET = 39 + INVALID_AD_TYPE = 40 + INVALID_ATTRIBUTES_FOR_MOBILE_IMAGE = 41 + INVALID_ATTRIBUTES_FOR_MOBILE_TEXT = 42 + INVALID_CALL_TO_ACTION_TEXT = 43 + INVALID_CHARACTER_FOR_URL = 44 + INVALID_COUNTRY_CODE = 45 + INVALID_EXPANDED_DYNAMIC_SEARCH_AD_TAG = 47 + INVALID_INPUT = 48 + INVALID_MARKUP_LANGUAGE = 49 + INVALID_MOBILE_CARRIER = 50 + INVALID_MOBILE_CARRIER_TARGET = 51 + INVALID_NUMBER_OF_ELEMENTS = 52 + INVALID_PHONE_NUMBER_FORMAT = 53 + INVALID_RICH_MEDIA_CERTIFIED_VENDOR_FORMAT_ID = 54 + INVALID_TEMPLATE_DATA = 55 + INVALID_TEMPLATE_ELEMENT_FIELD_TYPE = 56 + INVALID_TEMPLATE_ID = 57 + LINE_TOO_WIDE = 58 + MISSING_AD_CUSTOMIZER_MAPPING = 59 + MISSING_ADDRESS_COMPONENT = 60 + MISSING_ADVERTISEMENT_NAME = 61 + MISSING_BUSINESS_NAME = 62 + MISSING_DESCRIPTION1 = 63 + MISSING_DESCRIPTION2 = 64 + MISSING_DESTINATION_URL_TAG = 65 + MISSING_LANDING_PAGE_URL_TAG = 66 + MISSING_DIMENSION = 67 + MISSING_DISPLAY_URL = 68 + MISSING_HEADLINE = 69 + MISSING_HEIGHT = 70 + MISSING_IMAGE = 71 + MISSING_MARKETING_IMAGE_OR_PRODUCT_VIDEOS = 72 + MISSING_MARKUP_LANGUAGES = 73 + MISSING_MOBILE_CARRIER = 74 + MISSING_PHONE = 75 + MISSING_REQUIRED_TEMPLATE_FIELDS = 76 + MISSING_TEMPLATE_FIELD_VALUE = 77 + MISSING_TEXT = 78 + MISSING_VISIBLE_URL = 79 + MISSING_WIDTH = 80 + MULTIPLE_DISTINCT_FEEDS_UNSUPPORTED = 81 + MUST_USE_TEMP_AD_UNION_ID_ON_ADD = 82 + TOO_LONG = 83 + TOO_SHORT = 84 + UNION_DIMENSIONS_CANNOT_CHANGE = 85 + UNKNOWN_ADDRESS_COMPONENT = 86 + UNKNOWN_FIELD_NAME = 87 + UNKNOWN_UNIQUE_NAME = 88 + UNSUPPORTED_DIMENSIONS = 89 + URL_INVALID_SCHEME = 90 + URL_INVALID_TOP_LEVEL_DOMAIN = 91 + URL_MALFORMED = 92 + URL_NO_HOST = 93 + URL_NOT_EQUIVALENT = 94 + URL_HOST_NAME_TOO_LONG = 95 + URL_NO_SCHEME = 96 + URL_NO_TOP_LEVEL_DOMAIN = 97 + URL_PATH_NOT_ALLOWED = 98 + URL_PORT_NOT_ALLOWED = 99 + URL_QUERY_NOT_ALLOWED = 100 + URL_SCHEME_BEFORE_EXPANDED_DYNAMIC_SEARCH_AD_TAG = 102 + USER_DOES_NOT_HAVE_ACCESS_TO_TEMPLATE = 103 + INCONSISTENT_EXPANDABLE_SETTINGS = 104 + INVALID_FORMAT = 105 + INVALID_FIELD_TEXT = 106 + ELEMENT_NOT_PRESENT = 107 + IMAGE_ERROR = 108 + VALUE_NOT_IN_RANGE = 109 + FIELD_NOT_PRESENT = 110 + ADDRESS_NOT_COMPLETE = 111 + ADDRESS_INVALID = 112 + VIDEO_RETRIEVAL_ERROR = 113 + AUDIO_ERROR = 114 + INVALID_YOUTUBE_DISPLAY_URL = 115 + TOO_MANY_PRODUCT_IMAGES = 116 + TOO_MANY_PRODUCT_VIDEOS = 117 + INCOMPATIBLE_AD_TYPE_AND_DEVICE_PREFERENCE = 118 + CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY = 119 + CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED = 120 + DISALLOWED_NUMBER_TYPE = 121 + PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY = 122 + PHONE_NUMBER_NOT_SUPPORTED_WITH_CALLTRACKING_FOR_COUNTRY = 123 + PREMIUM_RATE_NUMBER_NOT_ALLOWED = 124 + VANITY_PHONE_NUMBER_NOT_ALLOWED = 125 + INVALID_CALL_CONVERSION_TYPE_ID = 126 + CANNOT_DISABLE_CALL_CONVERSION_AND_SET_CONVERSION_TYPE_ID = 127 + CANNOT_SET_PATH2_WITHOUT_PATH1 = 128 + MISSING_DYNAMIC_SEARCH_ADS_SETTING_DOMAIN_NAME = 129 + INCOMPATIBLE_WITH_RESTRICTION_TYPE = 130 + + +class AdGroupAdErrorEnum(object): + class AdGroupAdError(enum.IntEnum): + """ + Enum describing possible ad group ad errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + AD_GROUP_AD_LABEL_DOES_NOT_EXIST (int): No link found between the adgroup ad and the label. + AD_GROUP_AD_LABEL_ALREADY_EXISTS (int): The label has already been attached to the adgroup ad. + AD_NOT_UNDER_ADGROUP (int): The specified ad was not found in the adgroup + CANNOT_OPERATE_ON_REMOVED_ADGROUPAD (int): Removed ads may not be modified + CANNOT_CREATE_DEPRECATED_ADS (int): An ad of this type is deprecated and cannot be created. Only deletions + are permitted. + CANNOT_CREATE_TEXT_ADS (int): Text ads are deprecated and cannot be created. Use expanded text ads + 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 + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + AD_GROUP_AD_LABEL_DOES_NOT_EXIST = 2 + AD_GROUP_AD_LABEL_ALREADY_EXISTS = 3 + AD_NOT_UNDER_ADGROUP = 4 + CANNOT_OPERATE_ON_REMOVED_ADGROUPAD = 5 + CANNOT_CREATE_DEPRECATED_ADS = 6 + CANNOT_CREATE_TEXT_ADS = 7 + EMPTY_FIELD = 8 + RESOURCE_REFERENCED_IN_MULTIPLE_OPS = 9 + + +class AdGroupAdRotationModeEnum(object): + class AdGroupAdRotationMode(enum.IntEnum): + """ + The possible ad rotation modes of an ad group. + + Attributes: + UNSPECIFIED (int): The ad rotation mode has not been specified. + UNKNOWN (int): The received value is not known in this version. + + This is a response-only value. + OPTIMIZE (int): Optimize ad group ads based on clicks or conversions. + ROTATE_FOREVER (int): Rotate evenly forever. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + OPTIMIZE = 2 + ROTATE_FOREVER = 3 + + +class AdGroupAdStatusEnum(object): + class AdGroupAdStatus(enum.IntEnum): + """ + The possible statuses of an AdGroupAd. + + 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. + ENABLED (int): The ad group ad is enabled. + PAUSED (int): The ad group ad is paused. + REMOVED (int): The ad group ad is removed. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + ENABLED = 2 + PAUSED = 3 + REMOVED = 4 + + +class AdGroupBidModifierErrorEnum(object): + class AdGroupBidModifierError(enum.IntEnum): + """ + Enum describing possible ad group bid modifier errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + CRITERION_ID_NOT_SUPPORTED (int): The criterion ID does not support bid modification. + CANNOT_OVERRIDE_OPTED_OUT_CAMPAIGN_CRITERION_BID_MODIFIER (int): Cannot override the bid modifier for the given criterion ID if the parent + campaign is opted out of the same criterion. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + CRITERION_ID_NOT_SUPPORTED = 2 + CANNOT_OVERRIDE_OPTED_OUT_CAMPAIGN_CRITERION_BID_MODIFIER = 3 + + +class AdGroupCriterionErrorEnum(object): + class AdGroupCriterionError(enum.IntEnum): + """ + Enum describing possible ad group criterion errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + AD_GROUP_CRITERION_LABEL_DOES_NOT_EXIST (int): No link found between the AdGroupCriterion and the label. + AD_GROUP_CRITERION_LABEL_ALREADY_EXISTS (int): The label has already been attached to the AdGroupCriterion. + CANNOT_ADD_LABEL_TO_NEGATIVE_CRITERION (int): Negative AdGroupCriterion cannot have labels. + TOO_MANY_OPERATIONS (int): Too many operations for a single call. + CANT_UPDATE_NEGATIVE (int): Negative ad group criteria are not updateable. + CONCRETE_TYPE_REQUIRED (int): Concrete type of criterion (keyword v.s. placement) is required for ADD + and SET operations. + BID_INCOMPATIBLE_WITH_ADGROUP (int): Bid is incompatible with ad group's bidding settings. + CANNOT_TARGET_AND_EXCLUDE (int): Cannot target and exclude the same criterion at once. + ILLEGAL_URL (int): The URL of a placement is invalid. + INVALID_KEYWORD_TEXT (int): Keyword text was invalid. + INVALID_DESTINATION_URL (int): Destination URL was invalid. + MISSING_DESTINATION_URL_TAG (int): The destination url must contain at least one tag (e.g. {lpurl}) + KEYWORD_LEVEL_BID_NOT_SUPPORTED_FOR_MANUALCPM (int): Keyword-level cpm bid is not supported + INVALID_USER_STATUS (int): For example, cannot add a biddable ad group criterion that had been + removed. + CANNOT_ADD_CRITERIA_TYPE (int): Criteria type cannot be targeted for the ad group. Either the account is + restricted to keywords only, the criteria type is incompatible with the + campaign's bidding strategy, or the criteria type can only be applied to + campaigns. + CANNOT_EXCLUDE_CRITERIA_TYPE (int): Criteria type cannot be excluded for the ad group. Refer to the + documentation for a specific criterion to check if it is excludable. + CAMPAIGN_TYPE_NOT_COMPATIBLE_WITH_PARTIAL_FAILURE (int): Partial failure is not supported for shopping campaign mutate operations. + OPERATIONS_FOR_TOO_MANY_SHOPPING_ADGROUPS (int): Operations in the mutate request changes too many shopping ad groups. + Please split requests for multiple shopping ad groups across multiple + requests. + CANNOT_MODIFY_URL_FIELDS_WITH_DUPLICATE_ELEMENTS (int): Not allowed to modify url fields of an ad group criterion if there are + duplicate elements for that ad group criterion in the request. + CANNOT_SET_WITHOUT_FINAL_URLS (int): Cannot set url fields without also setting final urls. + CANNOT_CLEAR_FINAL_URLS_IF_FINAL_MOBILE_URLS_EXIST (int): Cannot clear final urls if final mobile urls exist. + CANNOT_CLEAR_FINAL_URLS_IF_FINAL_APP_URLS_EXIST (int): Cannot clear final urls if final app urls exist. + CANNOT_CLEAR_FINAL_URLS_IF_TRACKING_URL_TEMPLATE_EXISTS (int): Cannot clear final urls if tracking url template exists. + CANNOT_CLEAR_FINAL_URLS_IF_URL_CUSTOM_PARAMETERS_EXIST (int): Cannot clear final urls if url custom parameters exist. + CANNOT_SET_BOTH_DESTINATION_URL_AND_FINAL_URLS (int): Cannot set both destination url and final urls. + 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 + AD_GROUP_CRITERION_LABEL_DOES_NOT_EXIST = 2 + AD_GROUP_CRITERION_LABEL_ALREADY_EXISTS = 3 + CANNOT_ADD_LABEL_TO_NEGATIVE_CRITERION = 4 + TOO_MANY_OPERATIONS = 5 + CANT_UPDATE_NEGATIVE = 6 + CONCRETE_TYPE_REQUIRED = 7 + BID_INCOMPATIBLE_WITH_ADGROUP = 8 + CANNOT_TARGET_AND_EXCLUDE = 9 + ILLEGAL_URL = 10 + INVALID_KEYWORD_TEXT = 11 + INVALID_DESTINATION_URL = 12 + MISSING_DESTINATION_URL_TAG = 13 + KEYWORD_LEVEL_BID_NOT_SUPPORTED_FOR_MANUALCPM = 14 + INVALID_USER_STATUS = 15 + CANNOT_ADD_CRITERIA_TYPE = 16 + CANNOT_EXCLUDE_CRITERIA_TYPE = 17 + CAMPAIGN_TYPE_NOT_COMPATIBLE_WITH_PARTIAL_FAILURE = 27 + OPERATIONS_FOR_TOO_MANY_SHOPPING_ADGROUPS = 28 + CANNOT_MODIFY_URL_FIELDS_WITH_DUPLICATE_ELEMENTS = 29 + CANNOT_SET_WITHOUT_FINAL_URLS = 30 + CANNOT_CLEAR_FINAL_URLS_IF_FINAL_MOBILE_URLS_EXIST = 31 + CANNOT_CLEAR_FINAL_URLS_IF_FINAL_APP_URLS_EXIST = 32 + CANNOT_CLEAR_FINAL_URLS_IF_TRACKING_URL_TEMPLATE_EXISTS = 33 + CANNOT_CLEAR_FINAL_URLS_IF_URL_CUSTOM_PARAMETERS_EXIST = 34 + CANNOT_SET_BOTH_DESTINATION_URL_AND_FINAL_URLS = 35 + 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): + class AdGroupCriterionStatus(enum.IntEnum): + """ + The possible statuses of an AdGroupCriterion. + + 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. + ENABLED (int): The ad group criterion is enabled. + PAUSED (int): The ad group criterion is paused. + REMOVED (int): The ad group criterion is removed. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + ENABLED = 2 + PAUSED = 3 + REMOVED = 4 + + +class AdGroupErrorEnum(object): + class AdGroupError(enum.IntEnum): + """ + Enum describing possible ad group errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + DUPLICATE_ADGROUP_NAME (int): AdGroup with the same name already exists for the campaign. + INVALID_ADGROUP_NAME (int): AdGroup name is not valid. + ADVERTISER_NOT_ON_CONTENT_NETWORK (int): Advertiser is not allowed to target sites or set site bids that are not + on the Google Search Network. + BID_TOO_BIG (int): Bid amount is too big. + BID_TYPE_AND_BIDDING_STRATEGY_MISMATCH (int): AdGroup bid does not match the campaign's bidding strategy. + MISSING_ADGROUP_NAME (int): AdGroup name is required for Add. + ADGROUP_LABEL_DOES_NOT_EXIST (int): No link found between the ad group and the label. + ADGROUP_LABEL_ALREADY_EXISTS (int): The label has already been attached to the ad group. + INVALID_CONTENT_BID_CRITERION_TYPE_GROUP (int): The CriterionTypeGroup is not supported for the content bid dimension. + AD_GROUP_TYPE_NOT_VALID_FOR_ADVERTISING_CHANNEL_TYPE (int): The ad group type is not compatible with the campaign channel type. + ADGROUP_TYPE_NOT_SUPPORTED_FOR_CAMPAIGN_SALES_COUNTRY (int): The ad group type is not supported in the country of sale of the + 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. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + DUPLICATE_ADGROUP_NAME = 2 + INVALID_ADGROUP_NAME = 3 + ADVERTISER_NOT_ON_CONTENT_NETWORK = 5 + BID_TOO_BIG = 6 + BID_TYPE_AND_BIDDING_STRATEGY_MISMATCH = 7 + MISSING_ADGROUP_NAME = 8 + ADGROUP_LABEL_DOES_NOT_EXIST = 9 + ADGROUP_LABEL_ALREADY_EXISTS = 10 + INVALID_CONTENT_BID_CRITERION_TYPE_GROUP = 11 + 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 + + +class AdGroupFeedErrorEnum(object): + class AdGroupFeedError(enum.IntEnum): + """ + Enum describing possible ad group feed errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE (int): An active feed already exists for this ad group and place holder type. + CANNOT_CREATE_FOR_REMOVED_FEED (int): The specified feed is removed. + ADGROUP_FEED_ALREADY_EXISTS (int): The AdGroupFeed already exists. UPDATE operation should be used to modify + the existing AdGroupFeed. + CANNOT_OPERATE_ON_REMOVED_ADGROUP_FEED (int): Cannot operate on removed AdGroupFeed. + 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 AdGroupFeeds cannot be created unless there is a location + CustomerFeed for the specified feed. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE = 2 + CANNOT_CREATE_FOR_REMOVED_FEED = 3 + ADGROUP_FEED_ALREADY_EXISTS = 4 + CANNOT_OPERATE_ON_REMOVED_ADGROUP_FEED = 5 + INVALID_PLACEHOLDER_TYPE = 6 + MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE = 7 + NO_EXISTING_LOCATION_CUSTOMER_FEED = 8 + + +class AdGroupStatusEnum(object): + class AdGroupStatus(enum.IntEnum): + """ + The possible statuses of an ad group. + + Attributes: + UNSPECIFIED (int): The status has not been specified. + UNKNOWN (int): The received value is not known in this version. + + This is a response-only value. + ENABLED (int): The ad group is enabled. + PAUSED (int): The ad group is paused. + REMOVED (int): The ad group is removed. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + ENABLED = 2 + PAUSED = 3 + REMOVED = 4 + + +class AdGroupTypeEnum(object): + class AdGroupType(enum.IntEnum): + """ + Enum listing the possible types of an ad group. + + Attributes: + UNSPECIFIED (int): The type has not been specified. + UNKNOWN (int): The received value is not known in this version. + + This is a response-only value. + SEARCH_STANDARD (int): The default ad group type for Search campaigns. + DISPLAY_STANDARD (int): The default ad group type for Display campaigns. + SHOPPING_PRODUCT_ADS (int): The ad group type for Shopping campaigns serving standard product ads. + HOTEL_ADS (int): The default ad group type for Hotel campaigns. + SHOPPING_SMART_ADS (int): The type for ad groups in Smart Shopping campaigns. + VIDEO_BUMPER (int): Short unskippable in-stream video ads. + VIDEO_TRUE_VIEW_IN_STREAM (int): TrueView (skippable) in-stream video ads. + VIDEO_TRUE_VIEW_IN_DISPLAY (int): TrueView in-display video ads. + VIDEO_NON_SKIPPABLE_IN_STREAM (int): Unskippable in-stream video ads. + VIDEO_OUTSTREAM (int): Outstream video ads. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + SEARCH_STANDARD = 2 + DISPLAY_STANDARD = 3 + SHOPPING_PRODUCT_ADS = 4 + HOTEL_ADS = 6 + SHOPPING_SMART_ADS = 7 + VIDEO_BUMPER = 8 + VIDEO_TRUE_VIEW_IN_STREAM = 9 + VIDEO_TRUE_VIEW_IN_DISPLAY = 10 + VIDEO_NON_SKIPPABLE_IN_STREAM = 11 + VIDEO_OUTSTREAM = 12 + + +class AdNetworkTypeEnum(object): + class AdNetworkType(enum.IntEnum): + """ + Enumerates Google Ads network types. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): The value is unknown in this version. + SEARCH (int): Google search. + SEARCH_PARTNERS (int): Search partners. + CONTENT (int): Display Network. + YOUTUBE_SEARCH (int): YouTube Search. + YOUTUBE_WATCH (int): YouTube Videos + MIXED (int): Cross-network. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + SEARCH = 2 + SEARCH_PARTNERS = 3 + CONTENT = 4 + YOUTUBE_SEARCH = 5 + YOUTUBE_WATCH = 6 + MIXED = 7 + + +class AdParameterErrorEnum(object): + class AdParameterError(enum.IntEnum): + """ + Enum describing possible ad parameter errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + AD_GROUP_CRITERION_MUST_BE_KEYWORD (int): The ad group criterion must be a keyword criterion. + INVALID_INSERTION_TEXT_FORMAT (int): The insertion text is invalid. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + AD_GROUP_CRITERION_MUST_BE_KEYWORD = 2 + INVALID_INSERTION_TEXT_FORMAT = 3 + + +class AdServingOptimizationStatusEnum(object): + class AdServingOptimizationStatus(enum.IntEnum): + """ + Enum describing possible serving statuses. + + 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. + OPTIMIZE (int): Ad serving is optimized based on CTR for the campaign. + CONVERSION_OPTIMIZE (int): Ad serving is optimized based on CTR \* Conversion for the campaign. If + the campaign is not in the conversion optimizer bidding strategy, it + will default to OPTIMIZED. + ROTATE (int): Ads are rotated evenly for 90 days, then optimized for clicks. + ROTATE_INDEFINITELY (int): Show lower performing ads more evenly with higher performing ads, and do + not optimize. + UNAVAILABLE (int): Ad serving optimization status is not available. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + OPTIMIZE = 2 + CONVERSION_OPTIMIZE = 3 + ROTATE = 4 + ROTATE_INDEFINITELY = 5 + UNAVAILABLE = 6 + + +class AdSharingErrorEnum(object): + class AdSharingError(enum.IntEnum): + """ + Enum describing possible ad sharing errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + AD_GROUP_ALREADY_CONTAINS_AD (int): Error resulting in attempting to add an Ad to an AdGroup that already + contains the Ad. + INCOMPATIBLE_AD_UNDER_AD_GROUP (int): Ad is not compatible with the AdGroup it is being shared with. + CANNOT_SHARE_INACTIVE_AD (int): Cannot add AdGroupAd on inactive Ad. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + AD_GROUP_ALREADY_CONTAINS_AD = 2 + INCOMPATIBLE_AD_UNDER_AD_GROUP = 3 + CANNOT_SHARE_INACTIVE_AD = 4 + + +class AdStrengthEnum(object): + class AdStrength(enum.IntEnum): + """ + Enum listing the possible ad strengths. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + PENDING (int): The ad strength is currently pending. + NO_ADS (int): No ads could be generated. + POOR (int): Poor strength. + AVERAGE (int): Average strength. + GOOD (int): Good strength. + EXCELLENT (int): Excellent strength. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + PENDING = 2 + NO_ADS = 3 + POOR = 4 + AVERAGE = 5 + GOOD = 6 + EXCELLENT = 7 + + +class AdTypeEnum(object): + class AdType(enum.IntEnum): + """ + The possible types of an ad. + + 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. + TEXT_AD (int): The ad is a text ad. + EXPANDED_TEXT_AD (int): The ad is an expanded text ad. + CALL_ONLY_AD (int): The ad is a call only ad. + EXPANDED_DYNAMIC_SEARCH_AD (int): The ad is an expanded dynamic search ad. + HOTEL_AD (int): The ad is a hotel ad. + SHOPPING_SMART_AD (int): The ad is a Smart Shopping ad. + SHOPPING_PRODUCT_AD (int): The ad is a standard Shopping ad. + VIDEO_AD (int): The ad is a video ad. + GMAIL_AD (int): This ad is a Gmail ad. + IMAGE_AD (int): This ad is an Image ad. + RESPONSIVE_SEARCH_AD (int): The ad is a responsive search ad. + LEGACY_RESPONSIVE_DISPLAY_AD (int): The ad is a legacy responsive display ad. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + TEXT_AD = 2 + EXPANDED_TEXT_AD = 3 + CALL_ONLY_AD = 6 + EXPANDED_DYNAMIC_SEARCH_AD = 7 + HOTEL_AD = 8 + SHOPPING_SMART_AD = 9 + SHOPPING_PRODUCT_AD = 10 + VIDEO_AD = 12 + GMAIL_AD = 13 + IMAGE_AD = 14 + RESPONSIVE_SEARCH_AD = 15 + LEGACY_RESPONSIVE_DISPLAY_AD = 16 + + +class AdvertisingChannelSubTypeEnum(object): + class AdvertisingChannelSubType(enum.IntEnum): + """ + Enum describing the different channel subtypes. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used as a return value only. Represents value unknown in this version. + SEARCH_MOBILE_APP (int): Mobile app campaigns for Search. + DISPLAY_MOBILE_APP (int): Mobile app campaigns for Display. + SEARCH_EXPRESS (int): AdWords express campaigns for search. + DISPLAY_EXPRESS (int): AdWords Express campaigns for display. + SHOPPING_SMART_ADS (int): Smart Shopping campaigns. + DISPLAY_GMAIL_AD (int): Gmail Ad campaigns. + DISPLAY_SMART_CAMPAIGN (int): Smart display campaigns. + VIDEO_OUTSTREAM (int): Video Outstream campaigns. + VIDEO_ACTION (int): Video TrueView for Action campaigns. + VIDEO_NON_SKIPPABLE (int): Video campaigns with non-skippable video ads. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + SEARCH_MOBILE_APP = 2 + DISPLAY_MOBILE_APP = 3 + SEARCH_EXPRESS = 4 + DISPLAY_EXPRESS = 5 + SHOPPING_SMART_ADS = 6 + DISPLAY_GMAIL_AD = 7 + DISPLAY_SMART_CAMPAIGN = 8 + VIDEO_OUTSTREAM = 9 + VIDEO_ACTION = 10 + VIDEO_NON_SKIPPABLE = 11 + + +class AdvertisingChannelTypeEnum(object): + class AdvertisingChannelType(enum.IntEnum): + """ + Enum describing the various advertising channel types. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + SEARCH (int): Search Network. Includes display bundled, and Search+ campaigns. + DISPLAY (int): Google Display Network only. + SHOPPING (int): Shopping campaigns serve on the shopping property + and on google.com search results. + HOTEL (int): Hotel Ads campaigns. + VIDEO (int): Video campaigns. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + SEARCH = 2 + DISPLAY = 3 + SHOPPING = 4 + HOTEL = 5 + VIDEO = 6 + + +class AdxErrorEnum(object): + class AdxError(enum.IntEnum): + """ + Enum describing possible adx errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + UNSUPPORTED_FEATURE (int): Attempt to use non-AdX feature by AdX customer. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + UNSUPPORTED_FEATURE = 2 + + +class AffiliateLocationFeedRelationshipTypeEnum(object): + class AffiliateLocationFeedRelationshipType(enum.IntEnum): + """ + Possible values for a relationship type for an affiliate location feed. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + GENERAL_RETAILER (int): General retailer relationship. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + GENERAL_RETAILER = 2 + + +class AffiliateLocationPlaceholderFieldEnum(object): + class AffiliateLocationPlaceholderField(enum.IntEnum): + """ + Possible values for Affiliate Location placeholder fields. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + BUSINESS_NAME (int): Data Type: STRING. The name of the business. + ADDRESS_LINE_1 (int): Data Type: STRING. Line 1 of the business address. + ADDRESS_LINE_2 (int): Data Type: STRING. Line 2 of the business address. + CITY (int): Data Type: STRING. City of the business address. + PROVINCE (int): Data Type: STRING. Province of the business address. + POSTAL_CODE (int): Data Type: STRING. Postal code of the business address. + COUNTRY_CODE (int): Data Type: STRING. Country code of the business address. + PHONE_NUMBER (int): Data Type: STRING. Phone number of the business. + LANGUAGE_CODE (int): Data Type: STRING. Language code of the business. + CHAIN_ID (int): Data Type: INT64. ID of the chain. + CHAIN_NAME (int): Data Type: STRING. Name of the chain. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + BUSINESS_NAME = 2 + ADDRESS_LINE_1 = 3 + ADDRESS_LINE_2 = 4 + CITY = 5 + PROVINCE = 6 + POSTAL_CODE = 7 + COUNTRY_CODE = 8 + PHONE_NUMBER = 9 + LANGUAGE_CODE = 10 + CHAIN_ID = 11 + CHAIN_NAME = 12 + + +class AgeRangeTypeEnum(object): + class AgeRangeType(enum.IntEnum): + """ + The type of demographic age ranges (e.g. between 18 and 24 years old). + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + AGE_RANGE_18_24 (int): Between 18 and 24 years old. + AGE_RANGE_25_34 (int): Between 25 and 34 years old. + AGE_RANGE_35_44 (int): Between 35 and 44 years old. + AGE_RANGE_45_54 (int): Between 45 and 54 years old. + AGE_RANGE_55_64 (int): Between 55 and 64 years old. + AGE_RANGE_65_UP (int): 65 years old and beyond. + AGE_RANGE_UNDETERMINED (int): Undetermined age range. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + AGE_RANGE_18_24 = 503001 + AGE_RANGE_25_34 = 503002 + AGE_RANGE_35_44 = 503003 + AGE_RANGE_45_54 = 503004 + AGE_RANGE_55_64 = 503005 + AGE_RANGE_65_UP = 503006 + AGE_RANGE_UNDETERMINED = 503999 + + +class AppPaymentModelTypeEnum(object): + class AppPaymentModelType(enum.IntEnum): + """ + Enum describing possible app payment models. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + PAID (int): Represents paid-for apps. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + PAID = 30 + + +class AppPlaceholderFieldEnum(object): + class AppPlaceholderField(enum.IntEnum): + """ + Possible values for App placeholder fields. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + STORE (int): Data Type: INT64. The application store that the target application + belongs to. Valid values are: 1 = Apple iTunes Store; 2 = Google Play + Store. + ID (int): Data Type: STRING. The store-specific ID for the target application. + LINK_TEXT (int): Data Type: STRING. The visible text displayed when the link is rendered + in an ad. + URL (int): Data Type: STRING. The destination URL of the in-app link. + FINAL_URLS (int): Data Type: URL\_LIST. Final URLs for the in-app link when using Upgraded + URLs. + FINAL_MOBILE_URLS (int): Data Type: URL\_LIST. Final Mobile URLs for the in-app link when using + Upgraded URLs. + TRACKING_URL (int): Data Type: URL. Tracking template for the in-app link when using Upgraded + URLs. + FINAL_URL_SUFFIX (int): Data Type: STRING. Final URL suffix for the in-app link when using + parallel tracking. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + STORE = 2 + ID = 3 + LINK_TEXT = 4 + URL = 5 + FINAL_URLS = 6 + FINAL_MOBILE_URLS = 7 + TRACKING_URL = 8 + FINAL_URL_SUFFIX = 9 + + +class AppStoreEnum(object): + class AppStore(enum.IntEnum): + """ + App store type in an app extension. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + APPLE_ITUNES (int): Apple iTunes. + GOOGLE_PLAY (int): Google Play. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + APPLE_ITUNES = 2 + GOOGLE_PLAY = 3 + + +class AttributionModelEnum(object): + class AttributionModel(enum.IntEnum): + """ + The attribution model that describes how to distribute credit for a + particular conversion across potentially many prior interactions. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + EXTERNAL (int): Uses external attribution. + GOOGLE_ADS_LAST_CLICK (int): Attributes all credit for a conversion to its last click. + GOOGLE_SEARCH_ATTRIBUTION_FIRST_CLICK (int): Attributes all credit for a conversion to its first click using Google + Search attribution. + GOOGLE_SEARCH_ATTRIBUTION_LINEAR (int): Attributes credit for a conversion equally across all of its clicks using + Google Search attribution. + GOOGLE_SEARCH_ATTRIBUTION_TIME_DECAY (int): Attributes exponentially more credit for a conversion to its more recent + clicks using Google Search attribution (half-life is 1 week). + GOOGLE_SEARCH_ATTRIBUTION_POSITION_BASED (int): Attributes 40% of the credit for a conversion to its first and last + clicks. Remaining 20% is evenly distributed across all other clicks. This + uses Google Search attribution. + GOOGLE_SEARCH_ATTRIBUTION_DATA_DRIVEN (int): Flexible model that uses machine learning to determine the appropriate + distribution of credit among clicks using Google Search attribution. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + EXTERNAL = 100 + GOOGLE_ADS_LAST_CLICK = 101 + GOOGLE_SEARCH_ATTRIBUTION_FIRST_CLICK = 102 + GOOGLE_SEARCH_ATTRIBUTION_LINEAR = 103 + GOOGLE_SEARCH_ATTRIBUTION_TIME_DECAY = 104 + GOOGLE_SEARCH_ATTRIBUTION_POSITION_BASED = 105 + GOOGLE_SEARCH_ATTRIBUTION_DATA_DRIVEN = 106 + + +class AuthenticationErrorEnum(object): + class AuthenticationError(enum.IntEnum): + """ + Enum describing possible authentication errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + AUTHENTICATION_ERROR (int): Authentication of the request failed. + CLIENT_CUSTOMER_ID_INVALID (int): Client Customer Id is not a number. + CUSTOMER_NOT_FOUND (int): No customer found for the provided customer id. + GOOGLE_ACCOUNT_DELETED (int): Client's Google Account is deleted. + GOOGLE_ACCOUNT_COOKIE_INVALID (int): Google account login token in the cookie is invalid. + GOOGLE_ACCOUNT_AUTHENTICATION_FAILED (int): A problem occurred during Google account authentication. + GOOGLE_ACCOUNT_USER_AND_ADS_USER_MISMATCH (int): The user in the google account login token does not match the UserId in + the cookie. + LOGIN_COOKIE_REQUIRED (int): Login cookie is required for authentication. + NOT_ADS_USER (int): User in the cookie is not a valid Ads user. + OAUTH_TOKEN_INVALID (int): Oauth token in the header is not valid. + OAUTH_TOKEN_EXPIRED (int): Oauth token in the header has expired. + OAUTH_TOKEN_DISABLED (int): Oauth token in the header has been disabled. + OAUTH_TOKEN_REVOKED (int): Oauth token in the header has been revoked. + OAUTH_TOKEN_HEADER_INVALID (int): Oauth token HTTP header is malformed. + LOGIN_COOKIE_INVALID (int): Login cookie is not valid. + USER_ID_INVALID (int): User Id in the header is not a valid id. + TWO_STEP_VERIFICATION_NOT_ENROLLED (int): An account administrator changed this account's authentication settings. + To access this Google Ads account, enable 2-Step Verification in your + Google account at https://www.google.com/landing/2step. + ADVANCED_PROTECTION_NOT_ENROLLED (int): An account administrator changed this account's authentication settings. + To access this Google Ads account, enable Advanced Protection in your + Google account at https://landing.google.com/advancedprotection. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + AUTHENTICATION_ERROR = 2 + CLIENT_CUSTOMER_ID_INVALID = 5 + CUSTOMER_NOT_FOUND = 8 + GOOGLE_ACCOUNT_DELETED = 9 + GOOGLE_ACCOUNT_COOKIE_INVALID = 10 + GOOGLE_ACCOUNT_AUTHENTICATION_FAILED = 25 + GOOGLE_ACCOUNT_USER_AND_ADS_USER_MISMATCH = 12 + LOGIN_COOKIE_REQUIRED = 13 + NOT_ADS_USER = 14 + OAUTH_TOKEN_INVALID = 15 + OAUTH_TOKEN_EXPIRED = 16 + OAUTH_TOKEN_DISABLED = 17 + OAUTH_TOKEN_REVOKED = 18 + OAUTH_TOKEN_HEADER_INVALID = 19 + LOGIN_COOKIE_INVALID = 20 + USER_ID_INVALID = 22 + TWO_STEP_VERIFICATION_NOT_ENROLLED = 23 + ADVANCED_PROTECTION_NOT_ENROLLED = 24 + + +class AuthorizationErrorEnum(object): + class AuthorizationError(enum.IntEnum): + """ + Enum describing possible authorization errors. + + Attributes: + 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. + 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 + access the api. + AUTHORIZATION_ERROR (int): Authorization of the client failed. + ACTION_NOT_PERMITTED (int): The user does not have permission to perform this action + (e.g., ADD, UPDATE, REMOVE) on the resource or call a method. + INCOMPLETE_SIGNUP (int): Signup not complete. + CUSTOMER_NOT_ENABLED (int): The customer can't be used because it isn't enabled. + MISSING_TOS (int): The developer must sign the terms of service. They can be found here: + ads.google.com/aw/apicenter + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + USER_PERMISSION_DENIED = 2 + DEVELOPER_TOKEN_NOT_WHITELISTED = 3 + DEVELOPER_TOKEN_PROHIBITED = 4 + PROJECT_DISABLED = 5 + AUTHORIZATION_ERROR = 6 + ACTION_NOT_PERMITTED = 7 + INCOMPLETE_SIGNUP = 8 + CUSTOMER_NOT_ENABLED = 24 + MISSING_TOS = 9 + + +class BidModifierSourceEnum(object): + class BidModifierSource(enum.IntEnum): + """ + Enum describing possible bid modifier sources. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + CAMPAIGN (int): The bid modifier is specified at the campaign level, on the campaign + level criterion. + AD_GROUP (int): The bid modifier is specified (overridden) at the ad group level. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + CAMPAIGN = 2 + AD_GROUP = 3 + + +class BiddingErrorEnum(object): + class BiddingError(enum.IntEnum): + """ + Enum describing possible bidding errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + BIDDING_STRATEGY_TRANSITION_NOT_ALLOWED (int): Cannot transition to new bidding strategy. + CANNOT_ATTACH_BIDDING_STRATEGY_TO_CAMPAIGN (int): Cannot attach bidding strategy to campaign. + INVALID_ANONYMOUS_BIDDING_STRATEGY_TYPE (int): Bidding strategy is not supported or cannot be used as anonymous. + INVALID_BIDDING_STRATEGY_TYPE (int): The type does not match the named strategy's type. + INVALID_BID (int): The bid is invalid. + BIDDING_STRATEGY_NOT_AVAILABLE_FOR_ACCOUNT_TYPE (int): Bidding strategy is not available for the account type. + CONVERSION_TRACKING_NOT_ENABLED (int): Conversion tracking is not enabled for the campaign for VBB transition. + NOT_ENOUGH_CONVERSIONS (int): Not enough conversions tracked for VBB transitions. + CANNOT_CREATE_CAMPAIGN_WITH_BIDDING_STRATEGY (int): Campaign can not be created with given bidding strategy. It can be + transitioned to the strategy, once eligible. + CANNOT_TARGET_CONTENT_NETWORK_ONLY_WITH_CAMPAIGN_LEVEL_POP_BIDDING_STRATEGY (int): Cannot target content network only as campaign uses Page One Promoted + bidding strategy. + BIDDING_STRATEGY_NOT_SUPPORTED_WITH_AD_SCHEDULE (int): Budget Optimizer and Target Spend bidding strategies are not supported + for campaigns with AdSchedule targeting. + PAY_PER_CONVERSION_NOT_AVAILABLE_FOR_CUSTOMER (int): Pay per conversion is not available to all the customer, only few + whitelisted customers can use this. + PAY_PER_CONVERSION_NOT_ALLOWED_WITH_TARGET_CPA (int): Pay per conversion is not allowed with Target CPA. + BIDDING_STRATEGY_NOT_ALLOWED_FOR_SEARCH_ONLY_CAMPAIGNS (int): Cannot set bidding strategy to Manual CPM for search network only + campaigns. + BIDDING_STRATEGY_NOT_SUPPORTED_IN_DRAFTS_OR_EXPERIMENTS (int): The bidding strategy is not supported for use in drafts or experiments. + BIDDING_STRATEGY_TYPE_DOES_NOT_SUPPORT_PRODUCT_TYPE_ADGROUP_CRITERION (int): Bidding strategy type does not support product type ad group criterion. + BID_TOO_SMALL (int): Bid amount is too small. + BID_TOO_BIG (int): Bid amount is too big. + BID_TOO_MANY_FRACTIONAL_DIGITS (int): Bid has too many fractional digit precision. + INVALID_DOMAIN_NAME (int): Invalid domain name specified. + NOT_COMPATIBLE_WITH_PAYMENT_MODE (int): The field is not compatible with payment mode. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + BIDDING_STRATEGY_TRANSITION_NOT_ALLOWED = 2 + CANNOT_ATTACH_BIDDING_STRATEGY_TO_CAMPAIGN = 7 + INVALID_ANONYMOUS_BIDDING_STRATEGY_TYPE = 10 + INVALID_BIDDING_STRATEGY_TYPE = 14 + INVALID_BID = 17 + BIDDING_STRATEGY_NOT_AVAILABLE_FOR_ACCOUNT_TYPE = 18 + CONVERSION_TRACKING_NOT_ENABLED = 19 + NOT_ENOUGH_CONVERSIONS = 20 + CANNOT_CREATE_CAMPAIGN_WITH_BIDDING_STRATEGY = 21 + CANNOT_TARGET_CONTENT_NETWORK_ONLY_WITH_CAMPAIGN_LEVEL_POP_BIDDING_STRATEGY = 23 + BIDDING_STRATEGY_NOT_SUPPORTED_WITH_AD_SCHEDULE = 24 + PAY_PER_CONVERSION_NOT_AVAILABLE_FOR_CUSTOMER = 25 + PAY_PER_CONVERSION_NOT_ALLOWED_WITH_TARGET_CPA = 26 + BIDDING_STRATEGY_NOT_ALLOWED_FOR_SEARCH_ONLY_CAMPAIGNS = 27 + BIDDING_STRATEGY_NOT_SUPPORTED_IN_DRAFTS_OR_EXPERIMENTS = 28 + BIDDING_STRATEGY_TYPE_DOES_NOT_SUPPORT_PRODUCT_TYPE_ADGROUP_CRITERION = 29 + BID_TOO_SMALL = 30 + BID_TOO_BIG = 31 + BID_TOO_MANY_FRACTIONAL_DIGITS = 32 + INVALID_DOMAIN_NAME = 33 + NOT_COMPATIBLE_WITH_PAYMENT_MODE = 34 + + +class BiddingSourceEnum(object): + class BiddingSource(enum.IntEnum): + """ + Enum describing possible bidding sources. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + ADGROUP (int): Bidding entity is defined on the ad group. + CRITERION (int): Bidding entity is defined on the ad group criterion. + CAMPAIGN_BIDDING_STRATEGY (int): Effective bidding entity is inherited from campaign bidding strategy. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + ADGROUP = 2 + CRITERION = 3 + CAMPAIGN_BIDDING_STRATEGY = 5 + + +class BiddingStrategyErrorEnum(object): + class BiddingStrategyError(enum.IntEnum): + """ + Enum describing possible bidding strategy errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + DUPLICATE_NAME (int): Each bidding strategy must have a unique name. + CANNOT_CHANGE_BIDDING_STRATEGY_TYPE (int): Bidding strategy type is immutable. + CANNOT_REMOVE_ASSOCIATED_STRATEGY (int): Only bidding strategies not linked to campaigns, adgroups or adgroup + criteria can be removed. + BIDDING_STRATEGY_NOT_SUPPORTED (int): The specified bidding strategy is not supported. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + DUPLICATE_NAME = 2 + CANNOT_CHANGE_BIDDING_STRATEGY_TYPE = 3 + CANNOT_REMOVE_ASSOCIATED_STRATEGY = 4 + BIDDING_STRATEGY_NOT_SUPPORTED = 5 + + +class BiddingStrategyStatusEnum(object): + class BiddingStrategyStatus(enum.IntEnum): + """ + The possible statuses of a BiddingStrategy. + + 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. + ENABLED (int): The bidding strategy is enabled. + REMOVED (int): The bidding strategy is removed. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + ENABLED = 2 + REMOVED = 4 + + +class BiddingStrategyTypeEnum(object): + class BiddingStrategyType(enum.IntEnum): + """ + Enum describing possible bidding strategy types. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + ENHANCED_CPC (int): Enhanced CPC is 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. + MANUAL_CPC (int): Manual click based bidding where user pays per click. + MANUAL_CPM (int): Manual impression based bidding + where user pays per thousand impressions. + MANUAL_CPV (int): A bidding strategy that pays a configurable amount per video view. + MAXIMIZE_CONVERSIONS (int): A bidding strategy that automatically maximizes number of conversions + given a daily budget. + MAXIMIZE_CONVERSION_VALUE (int): An automated bidding strategy that automatically sets bids to maximize + 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. + 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 + to help get as many conversions as possible + at the target cost-per-acquisition (CPA) you set. + TARGET_CPM (int): Target CPM is an automated bid strategy that sets bids to help get + as many impressions as possible at the target cost per one thousand + impressions (CPM) you set. + TARGET_IMPRESSION_SHARE (int): 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). + 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. + 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). + TARGET_SPEND (int): Target Spend is an automated bid strategy that sets your bids + to help get as many clicks as possible within your budget. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + ENHANCED_CPC = 2 + MANUAL_CPC = 3 + MANUAL_CPM = 4 + MANUAL_CPV = 13 + MAXIMIZE_CONVERSIONS = 10 + MAXIMIZE_CONVERSION_VALUE = 11 + PAGE_ONE_PROMOTED = 5 + PERCENT_CPC = 12 + TARGET_CPA = 6 + TARGET_CPM = 14 + TARGET_IMPRESSION_SHARE = 15 + TARGET_OUTRANK_SHARE = 7 + TARGET_ROAS = 8 + TARGET_SPEND = 9 + + +class BillingSetupErrorEnum(object): + class BillingSetupError(enum.IntEnum): + """ + Enum describing possible billing setup errors. + + 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 + 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. + 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 + 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 + 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 + 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. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + CANNOT_USE_EXISTING_AND_NEW_ACCOUNT = 2 + CANNOT_REMOVE_STARTED_BILLING_SETUP = 3 + CANNOT_CHANGE_BILLING_TO_SAME_PAYMENTS_ACCOUNT = 4 + BILLING_SETUP_NOT_PERMITTED_FOR_CUSTOMER_STATUS = 5 + INVALID_PAYMENTS_ACCOUNT = 6 + BILLING_SETUP_NOT_PERMITTED_FOR_CUSTOMER_CATEGORY = 7 + INVALID_START_TIME_TYPE = 8 + THIRD_PARTY_ALREADY_HAS_BILLING = 9 + BILLING_SETUP_IN_PROGRESS = 10 + NO_SIGNUP_PERMISSION = 11 + CHANGE_OF_BILL_TO_IN_PROGRESS = 12 + PAYMENTS_PROFILE_NOT_FOUND = 13 + PAYMENTS_ACCOUNT_NOT_FOUND = 14 + PAYMENTS_PROFILE_INELIGIBLE = 15 + PAYMENTS_ACCOUNT_INELIGIBLE = 16 + + +class BillingSetupStatusEnum(object): + class BillingSetupStatus(enum.IntEnum): + """ + The possible statuses of a BillingSetup. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + PENDING (int): The billing setup is pending approval. + APPROVED_HELD (int): The billing setup has been approved but the corresponding first budget + has not. This can only occur for billing setups configured for monthly + invoicing. + APPROVED (int): The billing setup has been approved. + CANCELLED (int): The billing setup was cancelled by the user prior to approval. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + PENDING = 2 + APPROVED_HELD = 3 + APPROVED = 4 + CANCELLED = 5 + + +class BrandSafetySuitabilityEnum(object): + class BrandSafetySuitability(enum.IntEnum): + """ + 3-Tier brand safety suitability control. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + EXPANDED_INVENTORY (int): This option lets you show ads across all inventory on YouTube and video + partners that meet our standards for monetization. This option may be an + appropriate choice for brands that want maximum access to the full + breadth of videos eligible for ads, including, for example, videos that + have strong profanity in the context of comedy or a documentary, or + excessive violence as featured in video games. + STANDARD_INVENTORY (int): This option lets you show ads across a wide range of content that's + appropriate for most brands, such as popular music videos, documentaries, + and movie trailers. The content you can show ads on is based on YouTube's + advertiser-friendly content guidelines that take into account, for + example, the strength or frequency of profanity, or the appropriateness + of subject matter like sensitive events. Ads won't show, for example, on + content with repeated strong profanity, strong sexual content, or graphic + violence. + LIMITED_INVENTORY (int): This option lets you show ads on a reduced range of content that's + appropriate for brands with particularly strict guidelines around + inappropriate language and sexual suggestiveness; above and beyond what + YouTube's advertiser-friendly content guidelines address. The videos + accessible in this sensitive category meet heightened requirements, + especially for inappropriate language and sexual suggestiveness. For + example, your ads will be excluded from showing on some of YouTube's most + popular music videos and other pop culture content across YouTube and + Google video partners. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + EXPANDED_INVENTORY = 2 + STANDARD_INVENTORY = 3 + LIMITED_INVENTORY = 4 + + +class BudgetDeliveryMethodEnum(object): + class BudgetDeliveryMethod(enum.IntEnum): + """ + Possible delivery methods of a Budget. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + STANDARD (int): The budget server will throttle serving evenly across + the entire time period. + ACCELERATED (int): The budget server will not throttle serving, + and ads will serve as fast as possible. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + STANDARD = 2 + ACCELERATED = 3 + + +class BudgetPeriodEnum(object): + class BudgetPeriod(enum.IntEnum): + """ + Possible period of a Budget. + + Attributes: + 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 + + +class BudgetStatusEnum(object): + class BudgetStatus(enum.IntEnum): + """ + Possible statuses of a Budget. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + ENABLED (int): Budget is enabled. + REMOVED (int): Budget is removed. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + ENABLED = 2 + REMOVED = 3 + + +class CallConversionReportingStateEnum(object): + class CallConversionReportingState(enum.IntEnum): + """ + Possible data types for a call conversion action state. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + DISABLED (int): Call conversion action is disabled. + USE_ACCOUNT_LEVEL_CALL_CONVERSION_ACTION (int): Call conversion action will use call conversion type set at the + account level. + USE_RESOURCE_LEVEL_CALL_CONVERSION_ACTION (int): Call conversion action will use call conversion type set at the resource + (call only ads/call extensions) level. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + DISABLED = 2 + USE_ACCOUNT_LEVEL_CALL_CONVERSION_ACTION = 3 + USE_RESOURCE_LEVEL_CALL_CONVERSION_ACTION = 4 + + +class CallPlaceholderFieldEnum(object): + class CallPlaceholderField(enum.IntEnum): + """ + Possible values for Call placeholder fields. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + PHONE_NUMBER (int): Data Type: STRING. The advertiser's phone number to append to the ad. + COUNTRY_CODE (int): Data Type: STRING. Uppercase two-letter country code of the advertiser's + phone number. + TRACKED (int): Data Type: BOOLEAN. Indicates whether call tracking is enabled. Default: + true. + CONVERSION_TYPE_ID (int): Data Type: INT64. The ID of an AdCallMetricsConversion object. This + object contains the phoneCallDurationfield which is the minimum duration + (in seconds) of a call to be considered a conversion. + CONVERSION_REPORTING_STATE (int): Data Type: STRING. Indicates whether this call extension uses its own + call conversion setting or follows the account level setting. Valid + values are: USE\_ACCOUNT\_LEVEL\_CALL\_CONVERSION\_ACTION and + USE\_RESOURCE\_LEVEL\_CALL\_CONVERSION\_ACTION. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + PHONE_NUMBER = 2 + COUNTRY_CODE = 3 + TRACKED = 4 + CONVERSION_TYPE_ID = 5 + CONVERSION_REPORTING_STATE = 6 + + +class CalloutPlaceholderFieldEnum(object): + class CalloutPlaceholderField(enum.IntEnum): + """ + Possible values for Callout placeholder fields. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + CALLOUT_TEXT (int): Data Type: STRING. Callout text. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + CALLOUT_TEXT = 2 + + +class CampaignBudgetErrorEnum(object): + class CampaignBudgetError(enum.IntEnum): + """ + Enum describing possible campaign budget errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + CAMPAIGN_BUDGET_CANNOT_BE_SHARED (int): The campaign budget cannot be shared. + CAMPAIGN_BUDGET_REMOVED (int): The requested campaign budget no longer exists. + CAMPAIGN_BUDGET_IN_USE (int): The campaign budget is associated with at least one campaign, and so the + campaign budget cannot be removed. + CAMPAIGN_BUDGET_PERIOD_NOT_AVAILABLE (int): Customer is not whitelisted for this campaign budget period. + CANNOT_MODIFY_FIELD_OF_IMPLICITLY_SHARED_CAMPAIGN_BUDGET (int): This field is not mutable on implicitly shared campaign budgets + CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_IMPLICITLY_SHARED (int): Cannot change explicitly shared campaign budgets back to implicitly + shared ones. + CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_EXPLICITLY_SHARED_WITHOUT_NAME (int): An implicit campaign budget without a name cannot be changed to + explicitly shared campaign budget. + CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_EXPLICITLY_SHARED (int): Cannot change an implicitly shared campaign budget to an explicitly + shared one. + CANNOT_USE_IMPLICITLY_SHARED_CAMPAIGN_BUDGET_WITH_MULTIPLE_CAMPAIGNS (int): Only explicitly shared campaign budgets can be used with multiple + campaigns. + DUPLICATE_NAME (int): A campaign budget with this name already exists. + MONEY_AMOUNT_IN_WRONG_CURRENCY (int): A money amount was not in the expected currency. + MONEY_AMOUNT_LESS_THAN_CURRENCY_MINIMUM_CPC (int): A money amount was less than the minimum CPC for currency. + 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. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + CAMPAIGN_BUDGET_CANNOT_BE_SHARED = 17 + CAMPAIGN_BUDGET_REMOVED = 2 + CAMPAIGN_BUDGET_IN_USE = 3 + CAMPAIGN_BUDGET_PERIOD_NOT_AVAILABLE = 4 + CANNOT_MODIFY_FIELD_OF_IMPLICITLY_SHARED_CAMPAIGN_BUDGET = 6 + CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_IMPLICITLY_SHARED = 7 + CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_EXPLICITLY_SHARED_WITHOUT_NAME = 8 + CANNOT_UPDATE_CAMPAIGN_BUDGET_TO_EXPLICITLY_SHARED = 9 + CANNOT_USE_IMPLICITLY_SHARED_CAMPAIGN_BUDGET_WITH_MULTIPLE_CAMPAIGNS = 10 + DUPLICATE_NAME = 11 + MONEY_AMOUNT_IN_WRONG_CURRENCY = 12 + MONEY_AMOUNT_LESS_THAN_CURRENCY_MINIMUM_CPC = 13 + MONEY_AMOUNT_TOO_LARGE = 14 + NEGATIVE_MONEY_AMOUNT = 15 + NON_MULTIPLE_OF_MINIMUM_CURRENCY_UNIT = 16 + + +class CampaignCriterionErrorEnum(object): + class CampaignCriterionError(enum.IntEnum): + """ + Enum describing possible campaign criterion errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + CONCRETE_TYPE_REQUIRED (int): Concrete type of criterion (keyword v.s. placement) is required for + CREATE and UPDATE operations. + INVALID_PLACEMENT_URL (int): Invalid placement URL. + CANNOT_EXCLUDE_CRITERIA_TYPE (int): Criteria type can not be excluded for the campaign by the customer. like + AOL account type cannot target site type criteria + CANNOT_SET_STATUS_FOR_CRITERIA_TYPE (int): Cannot set the campaign criterion status for this criteria type. + CANNOT_SET_STATUS_FOR_EXCLUDED_CRITERIA (int): Cannot set the campaign criterion status for an excluded criteria. + CANNOT_TARGET_AND_EXCLUDE (int): Cannot target and exclude the same criterion. + TOO_MANY_OPERATIONS (int): The mutate contained too many operations. + OPERATOR_NOT_SUPPORTED_FOR_CRITERION_TYPE (int): This operator cannot be applied to a criterion of this type. + SHOPPING_CAMPAIGN_SALES_COUNTRY_NOT_SUPPORTED_FOR_SALES_CHANNEL (int): The Shopping campaign sales country is not supported for + ProductSalesChannel targeting. + CANNOT_ADD_EXISTING_FIELD (int): The existing field can't be updated with CREATE operation. It can be + updated with UPDATE operation only. + CANNOT_UPDATE_NEGATIVE_CRITERION (int): Negative criteria are immutable, so updates are not allowed. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + CONCRETE_TYPE_REQUIRED = 2 + INVALID_PLACEMENT_URL = 3 + CANNOT_EXCLUDE_CRITERIA_TYPE = 4 + CANNOT_SET_STATUS_FOR_CRITERIA_TYPE = 5 + CANNOT_SET_STATUS_FOR_EXCLUDED_CRITERIA = 6 + CANNOT_TARGET_AND_EXCLUDE = 7 + TOO_MANY_OPERATIONS = 8 + OPERATOR_NOT_SUPPORTED_FOR_CRITERION_TYPE = 9 + SHOPPING_CAMPAIGN_SALES_COUNTRY_NOT_SUPPORTED_FOR_SALES_CHANNEL = 10 + CANNOT_ADD_EXISTING_FIELD = 11 + CANNOT_UPDATE_NEGATIVE_CRITERION = 12 + + +class CampaignErrorEnum(object): + class CampaignError(enum.IntEnum): + """ + Enum describing possible campaign errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + CANNOT_TARGET_CONTENT_NETWORK (int): Cannot target content network. + CANNOT_TARGET_SEARCH_NETWORK (int): Cannot target search network. + CANNOT_TARGET_SEARCH_NETWORK_WITHOUT_GOOGLE_SEARCH (int): Cannot cover search network without google search network. + CANNOT_TARGET_GOOGLE_SEARCH_FOR_CPM_CAMPAIGN (int): Cannot target Google Search network for a CPM campaign. + CAMPAIGN_MUST_TARGET_AT_LEAST_ONE_NETWORK (int): Must target at least one network. + CANNOT_TARGET_PARTNER_SEARCH_NETWORK (int): Only some Google partners are allowed to target partner search network. + CANNOT_TARGET_CONTENT_NETWORK_ONLY_WITH_CRITERIA_LEVEL_BIDDING_STRATEGY (int): Cannot target content network only as campaign has criteria-level bidding + strategy. + CAMPAIGN_DURATION_MUST_CONTAIN_ALL_RUNNABLE_TRIALS (int): Cannot modify the start or end date such that the campaign duration would + not contain the durations of all runnable trials. + CANNOT_MODIFY_FOR_TRIAL_CAMPAIGN (int): Cannot modify dates, budget or campaign name of a trial campaign. + DUPLICATE_CAMPAIGN_NAME (int): Trying to modify the name of an active or paused campaign, where the name + is already assigned to another active or paused campaign. + 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. + 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. + INVALID_OPERATION_IF_SERVING_STATUS_HAS_ENDED (int): Operation not allowed on a campaign whose serving status has ended + BUDGET_CANNOT_BE_SHARED (int): This budget is exclusively linked to a Campaign that is using experiments + so it cannot be shared. + CAMPAIGN_CANNOT_USE_SHARED_BUDGET (int): Campaigns using experiments cannot use a shared budget. + CANNOT_CHANGE_BUDGET_ON_CAMPAIGN_WITH_TRIALS (int): A different budget cannot be assigned to a campaign when there are + running or scheduled trials. + CAMPAIGN_LABEL_DOES_NOT_EXIST (int): No link found between the campaign and the label. + 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 + channel type. + AT_LEAST_ONE_CONVERSION_MUST_BE_SELECTED (int): At least one conversion must be selected. + CANNOT_SET_AD_ROTATION_MODE (int): Setting ad rotation mode for a campaign is not allowed. Ad rotation mode + at campaign is deprecated. + CANNOT_MODIFY_START_DATE_IF_ALREADY_STARTED (int): Trying to change start date on a campaign that has started. + CANNOT_SET_DATE_TO_PAST (int): Trying to modify a date into the past. + MISSING_HOTEL_CUSTOMER_LINK (int): Hotel center id in the hotel setting does not match any customer links. + INVALID_HOTEL_CUSTOMER_LINK (int): Hotel center id in the hotel setting must match an active customer link. + MISSING_HOTEL_SETTING (int): Hotel setting was not found when creating a hotel ads campaign. + CANNOT_USE_SHARED_CAMPAIGN_BUDGET_WHILE_PART_OF_CAMPAIGN_GROUP (int): A Campaign cannot use shared campaign budgets and be part of a campaign + group. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + CANNOT_TARGET_CONTENT_NETWORK = 3 + CANNOT_TARGET_SEARCH_NETWORK = 4 + CANNOT_TARGET_SEARCH_NETWORK_WITHOUT_GOOGLE_SEARCH = 5 + CANNOT_TARGET_GOOGLE_SEARCH_FOR_CPM_CAMPAIGN = 6 + CAMPAIGN_MUST_TARGET_AT_LEAST_ONE_NETWORK = 7 + CANNOT_TARGET_PARTNER_SEARCH_NETWORK = 8 + CANNOT_TARGET_CONTENT_NETWORK_ONLY_WITH_CRITERIA_LEVEL_BIDDING_STRATEGY = 9 + CAMPAIGN_DURATION_MUST_CONTAIN_ALL_RUNNABLE_TRIALS = 10 + CANNOT_MODIFY_FOR_TRIAL_CAMPAIGN = 11 + DUPLICATE_CAMPAIGN_NAME = 12 + INCOMPATIBLE_CAMPAIGN_FIELD = 13 + INVALID_CAMPAIGN_NAME = 14 + INVALID_AD_SERVING_OPTIMIZATION_STATUS = 15 + INVALID_TRACKING_URL = 16 + CANNOT_SET_BOTH_TRACKING_URL_TEMPLATE_AND_TRACKING_SETTING = 17 + MAX_IMPRESSIONS_NOT_IN_RANGE = 18 + TIME_UNIT_NOT_SUPPORTED = 19 + INVALID_OPERATION_IF_SERVING_STATUS_HAS_ENDED = 20 + BUDGET_CANNOT_BE_SHARED = 21 + CAMPAIGN_CANNOT_USE_SHARED_BUDGET = 22 + CANNOT_CHANGE_BUDGET_ON_CAMPAIGN_WITH_TRIALS = 23 + CAMPAIGN_LABEL_DOES_NOT_EXIST = 24 + 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 + CANNOT_SET_AD_ROTATION_MODE = 34 + CANNOT_MODIFY_START_DATE_IF_ALREADY_STARTED = 35 + CANNOT_SET_DATE_TO_PAST = 36 + MISSING_HOTEL_CUSTOMER_LINK = 37 + INVALID_HOTEL_CUSTOMER_LINK = 38 + MISSING_HOTEL_SETTING = 39 + CANNOT_USE_SHARED_CAMPAIGN_BUDGET_WHILE_PART_OF_CAMPAIGN_GROUP = 40 + + +class CampaignFeedErrorEnum(object): + class CampaignFeedError(enum.IntEnum): + """ + Enum describing possible campaign feed errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE (int): An active feed already exists for this campaign and placeholder type. + CANNOT_CREATE_FOR_REMOVED_FEED (int): The specified feed is removed. + CANNOT_CREATE_ALREADY_EXISTING_CAMPAIGN_FEED (int): The CampaignFeed already exists. UPDATE should be used to modify the + existing CampaignFeed. + 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. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE = 2 + CANNOT_CREATE_FOR_REMOVED_FEED = 4 + CANNOT_CREATE_ALREADY_EXISTING_CAMPAIGN_FEED = 5 + CANNOT_MODIFY_REMOVED_CAMPAIGN_FEED = 6 + INVALID_PLACEHOLDER_TYPE = 7 + MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE = 8 + + +class CampaignServingStatusEnum(object): + class CampaignServingStatus(enum.IntEnum): + """ + Possible serving statuses of a campaign. + + 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. + SERVING (int): Serving. + NONE (int): None. + ENDED (int): Ended. + PENDING (int): Pending. + SUSPENDED (int): Suspended. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + SERVING = 2 + NONE = 3 + ENDED = 4 + PENDING = 5 + SUSPENDED = 6 + + +class CampaignSharedSetErrorEnum(object): + class CampaignSharedSetError(enum.IntEnum): + """ + Enum describing possible campaign shared set errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + SHARED_SET_ACCESS_DENIED (int): The shared set belongs to another customer and permission isn't granted. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + SHARED_SET_ACCESS_DENIED = 2 + + +class CampaignSharedSetStatusEnum(object): + class CampaignSharedSetStatus(enum.IntEnum): + """ + Enum listing the possible campaign shared set statuses. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + ENABLED (int): The campaign shared set is enabled. + REMOVED (int): The campaign shared set is removed and can no longer be used. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + ENABLED = 2 + REMOVED = 3 + + +class CampaignStatusEnum(object): + class CampaignStatus(enum.IntEnum): + """ + Possible statuses of a campaign. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + ENABLED (int): Campaign is currently serving ads depending on budget information. + PAUSED (int): Campaign has been paused by the user. + REMOVED (int): Campaign has been removed. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + ENABLED = 2 + PAUSED = 3 + REMOVED = 4 + + +class ChangeStatusErrorEnum(object): + class ChangeStatusError(enum.IntEnum): + """ + Enum describing possible change status errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + START_DATE_TOO_OLD (int): The requested start date is too old. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + START_DATE_TOO_OLD = 3 + + +class ChangeStatusOperationEnum(object): + class ChangeStatusOperation(enum.IntEnum): + """ + Status of the changed resource + + Attributes: + UNSPECIFIED (int): No value has been specified. + UNKNOWN (int): Used for return value only. Represents an unclassified resource unknown + in this version. + ADDED (int): The resource was created. + CHANGED (int): The resource was modified. + REMOVED (int): The resource was removed. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + ADDED = 2 + CHANGED = 3 + REMOVED = 4 + + +class ChangeStatusResourceTypeEnum(object): + class ChangeStatusResourceType(enum.IntEnum): + """ + Enum listing the resource types support by the ChangeStatus resource. + + Attributes: + UNSPECIFIED (int): No value has been specified. + UNKNOWN (int): Used for return value only. Represents an unclassified resource unknown + in this version. + AD_GROUP (int): An AdGroup resource change. + AD_GROUP_AD (int): An AdGroupAd resource change. + AD_GROUP_CRITERION (int): An AdGroupCriterion resource change. + CAMPAIGN (int): A Campaign resource change. + CAMPAIGN_CRITERION (int): A CampaignCriterion resource change. + FEED (int): A Feed resource change. + FEED_ITEM (int): A FeedItem resource change. + AD_GROUP_FEED (int): An AdGroupFeed resource change. + CAMPAIGN_FEED (int): A CampaignFeed resource change. + AD_GROUP_BID_MODIFIER (int): An AdGroupBidModifier resource change. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + AD_GROUP = 3 + AD_GROUP_AD = 4 + AD_GROUP_CRITERION = 5 + CAMPAIGN = 6 + CAMPAIGN_CRITERION = 7 + FEED = 9 + FEED_ITEM = 10 + AD_GROUP_FEED = 11 + CAMPAIGN_FEED = 12 + AD_GROUP_BID_MODIFIER = 13 + + +class ClickTypeEnum(object): + class ClickType(enum.IntEnum): + """ + Enumerates Google Ads click types. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): The value is unknown in this version. + APP_DEEPLINK (int): App engagement ad deep link. + BREADCRUMBS (int): Breadcrumbs. + BROADBAND_PLAN (int): Broadband Plan. + CALL_TRACKING (int): Manually dialed phone calls. + CALLS (int): Phone calls. + CLICK_ON_ENGAGEMENT_AD (int): Click on engagement ad. + GET_DIRECTIONS (int): Driving direction. + LOCATION_EXPANSION (int): Get location details. + LOCATION_FORMAT_CALL (int): Call. + LOCATION_FORMAT_DIRECTIONS (int): Directions. + LOCATION_FORMAT_IMAGE (int): Image(s). + LOCATION_FORMAT_LANDING_PAGE (int): Go to landing page. + LOCATION_FORMAT_MAP (int): Map. + LOCATION_FORMAT_STORE_INFO (int): Go to store info. + LOCATION_FORMAT_TEXT (int): Text. + MOBILE_CALL_TRACKING (int): Mobile phone calls. + OFFER_PRINTS (int): Print offer. + OTHER (int): Other. + PRODUCT_EXTENSION_CLICKS (int): Product plusbox offer. + PRODUCT_LISTING_AD_CLICKS (int): Shopping - Product - Online. + SITELINKS (int): Sitelink. + STORE_LOCATOR (int): Show nearby locations. + URL_CLICKS (int): Headline. + VIDEO_APP_STORE_CLICKS (int): App store. + VIDEO_CALL_TO_ACTION_CLICKS (int): Call-to-Action overlay. + VIDEO_CARD_ACTION_HEADLINE_CLICKS (int): Cards. + VIDEO_END_CAP_CLICKS (int): End cap. + VIDEO_WEBSITE_CLICKS (int): Website. + VISUAL_SITELINKS (int): Visual Sitelinks. + WIRELESS_PLAN (int): Wireless Plan. + PRODUCT_LISTING_AD_LOCAL (int): Shopping - Product - Local. + PRODUCT_LISTING_AD_MULTICHANNEL_LOCAL (int): Shopping - Product - MultiChannel Local. + PRODUCT_LISTING_AD_MULTICHANNEL_ONLINE (int): Shopping - Product - MultiChannel Online. + PRODUCT_LISTING_ADS_COUPON (int): Shopping - Product - Coupon. + PRODUCT_LISTING_AD_TRANSACTABLE (int): Shopping - Product - Sell on Google. + PRODUCT_AD_APP_DEEPLINK (int): Shopping - Product - App engagement ad deep link. + SHOWCASE_AD_CATEGORY_LINK (int): Shopping - Showcase - Category. + SHOWCASE_AD_LOCAL_STOREFRONT_LINK (int): Shopping - Showcase - Local storefront. + SHOWCASE_AD_ONLINE_PRODUCT_LINK (int): Shopping - Showcase - Online product. + SHOWCASE_AD_LOCAL_PRODUCT_LINK (int): Shopping - Showcase - Local product. + PROMOTION_EXTENSION (int): Promotion Extension. + SWIPEABLE_GALLERY_AD_HEADLINE (int): Ad Headline. + SWIPEABLE_GALLERY_AD_SWIPES (int): Swipes. + SWIPEABLE_GALLERY_AD_SEE_MORE (int): See More. + SWIPEABLE_GALLERY_AD_SITELINK_ONE (int): Sitelink 1. + SWIPEABLE_GALLERY_AD_SITELINK_TWO (int): Sitelink 2. + SWIPEABLE_GALLERY_AD_SITELINK_THREE (int): Sitelink 3. + SWIPEABLE_GALLERY_AD_SITELINK_FOUR (int): Sitelink 4. + SWIPEABLE_GALLERY_AD_SITELINK_FIVE (int): Sitelink 5. + HOTEL_PRICE (int): Hotel price. + PRICE_EXTENSION (int): Price Extension. + HOTEL_BOOK_ON_GOOGLE_ROOM_SELECTION (int): Hotel Book-on-Google room selection. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + APP_DEEPLINK = 2 + BREADCRUMBS = 3 + BROADBAND_PLAN = 4 + CALL_TRACKING = 5 + CALLS = 6 + CLICK_ON_ENGAGEMENT_AD = 7 + GET_DIRECTIONS = 8 + LOCATION_EXPANSION = 9 + LOCATION_FORMAT_CALL = 10 + LOCATION_FORMAT_DIRECTIONS = 11 + LOCATION_FORMAT_IMAGE = 12 + LOCATION_FORMAT_LANDING_PAGE = 13 + LOCATION_FORMAT_MAP = 14 + LOCATION_FORMAT_STORE_INFO = 15 + LOCATION_FORMAT_TEXT = 16 + MOBILE_CALL_TRACKING = 17 + OFFER_PRINTS = 18 + OTHER = 19 + PRODUCT_EXTENSION_CLICKS = 20 + PRODUCT_LISTING_AD_CLICKS = 21 + SITELINKS = 22 + STORE_LOCATOR = 23 + URL_CLICKS = 25 + VIDEO_APP_STORE_CLICKS = 26 + VIDEO_CALL_TO_ACTION_CLICKS = 27 + VIDEO_CARD_ACTION_HEADLINE_CLICKS = 28 + VIDEO_END_CAP_CLICKS = 29 + VIDEO_WEBSITE_CLICKS = 30 + VISUAL_SITELINKS = 31 + WIRELESS_PLAN = 32 + PRODUCT_LISTING_AD_LOCAL = 33 + PRODUCT_LISTING_AD_MULTICHANNEL_LOCAL = 34 + PRODUCT_LISTING_AD_MULTICHANNEL_ONLINE = 35 + PRODUCT_LISTING_ADS_COUPON = 36 + PRODUCT_LISTING_AD_TRANSACTABLE = 37 + PRODUCT_AD_APP_DEEPLINK = 38 + SHOWCASE_AD_CATEGORY_LINK = 39 + SHOWCASE_AD_LOCAL_STOREFRONT_LINK = 40 + SHOWCASE_AD_ONLINE_PRODUCT_LINK = 42 + SHOWCASE_AD_LOCAL_PRODUCT_LINK = 43 + PROMOTION_EXTENSION = 44 + SWIPEABLE_GALLERY_AD_HEADLINE = 45 + SWIPEABLE_GALLERY_AD_SWIPES = 46 + SWIPEABLE_GALLERY_AD_SEE_MORE = 47 + SWIPEABLE_GALLERY_AD_SITELINK_ONE = 48 + SWIPEABLE_GALLERY_AD_SITELINK_TWO = 49 + SWIPEABLE_GALLERY_AD_SITELINK_THREE = 50 + SWIPEABLE_GALLERY_AD_SITELINK_FOUR = 51 + SWIPEABLE_GALLERY_AD_SITELINK_FIVE = 52 + HOTEL_PRICE = 53 + PRICE_EXTENSION = 54 + HOTEL_BOOK_ON_GOOGLE_ROOM_SELECTION = 55 + + +class CollectionSizeErrorEnum(object): + class CollectionSizeError(enum.IntEnum): + """ + Enum describing possible collection size errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + TOO_FEW (int): Too few. + TOO_MANY (int): Too many. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + TOO_FEW = 2 + TOO_MANY = 3 + + +class ContentLabelTypeEnum(object): + class ContentLabelType(enum.IntEnum): + """ + Enum listing the content label types supported by ContentLabel criterion. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + 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. + VIDEO (int): Video. + VIDEO_RATING_DV_G (int): Content rating: G. + VIDEO_RATING_DV_PG (int): Content rating: PG. + VIDEO_RATING_DV_T (int): Content rating: T. + VIDEO_RATING_DV_MA (int): Content rating: MA. + VIDEO_NOT_YET_RATED (int): Content rating: not yet rated. + EMBEDDED_VIDEO (int): Embedded video. + LIVE_STREAMING_VIDEO (int): Live streaming video. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + SEXUALLY_SUGGESTIVE = 2 + BELOW_THE_FOLD = 3 + PARKED_DOMAIN = 4 + GAME = 5 + JUVENILE = 6 + PROFANITY = 7 + TRAGEDY = 8 + VIDEO = 9 + VIDEO_RATING_DV_G = 10 + VIDEO_RATING_DV_PG = 11 + VIDEO_RATING_DV_T = 12 + VIDEO_RATING_DV_MA = 13 + VIDEO_NOT_YET_RATED = 14 + EMBEDDED_VIDEO = 15 + LIVE_STREAMING_VIDEO = 16 + + +class ContextErrorEnum(object): + class ContextError(enum.IntEnum): + """ + Enum describing possible context errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + OPERATION_NOT_PERMITTED_FOR_CONTEXT (int): The operation is not allowed for the given context. + OPERATION_NOT_PERMITTED_FOR_REMOVED_RESOURCE (int): The operation is not allowed for removed resources. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + OPERATION_NOT_PERMITTED_FOR_CONTEXT = 2 + OPERATION_NOT_PERMITTED_FOR_REMOVED_RESOURCE = 3 + + +class ConversionActionCategoryEnum(object): + class ConversionActionCategory(enum.IntEnum): + """ + The category of conversions that are associated with a ConversionAction. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + DEFAULT (int): Default category. + PAGE_VIEW (int): User visiting a page. + PURCHASE (int): Purchase, sales, or "order placed" event. + SIGNUP (int): Signup user action. + LEAD (int): Lead-generating action. + DOWNLOAD (int): Software download action (as for an app). + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + DEFAULT = 2 + PAGE_VIEW = 3 + PURCHASE = 4 + SIGNUP = 5 + LEAD = 6 + DOWNLOAD = 7 + + +class ConversionActionCountingTypeEnum(object): + class ConversionActionCountingType(enum.IntEnum): + """ + Indicates how conversions for this action will be counted. For more + information, see https://support.google.com/google-ads/answer/3438531. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + ONE_PER_CLICK (int): Count only one conversion per click. + MANY_PER_CLICK (int): Count all conversions per click. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + ONE_PER_CLICK = 2 + MANY_PER_CLICK = 3 + + +class ConversionActionErrorEnum(object): + class ConversionActionError(enum.IntEnum): + """ + Enum describing possible conversion action errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + DUPLICATE_NAME (int): The specified conversion action name already exists. + DUPLICATE_APP_ID (int): Another conversion action with the specified app id already exists. + TWO_CONVERSION_ACTIONS_BIDDING_ON_SAME_APP_DOWNLOAD (int): Android first open action conflicts with Google play codeless download + action tracking the same app. + BIDDING_ON_SAME_APP_DOWNLOAD_AS_GLOBAL_ACTION (int): Android first open action conflicts with Google play codeless download + action tracking the same app. + DATA_DRIVEN_MODEL_WAS_NEVER_GENERATED (int): The attribution model cannot be set to DATA\_DRIVEN because a + data-driven model has never been generated. + DATA_DRIVEN_MODEL_EXPIRED (int): The attribution model cannot be set to DATA\_DRIVEN because the + data-driven model is expired. + DATA_DRIVEN_MODEL_STALE (int): The attribution model cannot be set to DATA\_DRIVEN because the + data-driven model is stale. + 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. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + DUPLICATE_NAME = 2 + DUPLICATE_APP_ID = 3 + TWO_CONVERSION_ACTIONS_BIDDING_ON_SAME_APP_DOWNLOAD = 4 + BIDDING_ON_SAME_APP_DOWNLOAD_AS_GLOBAL_ACTION = 5 + DATA_DRIVEN_MODEL_WAS_NEVER_GENERATED = 6 + DATA_DRIVEN_MODEL_EXPIRED = 7 + DATA_DRIVEN_MODEL_STALE = 8 + DATA_DRIVEN_MODEL_UNKNOWN = 9 + + +class ConversionActionStatusEnum(object): + class ConversionActionStatus(enum.IntEnum): + """ + Possible statuses of a conversion action. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + ENABLED (int): Conversions will be recorded. + REMOVED (int): Conversions will not be recorded. + HIDDEN (int): Conversions will not be recorded and the conversion action will not + appear in the UI. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + ENABLED = 2 + REMOVED = 3 + HIDDEN = 4 + + +class ConversionActionTypeEnum(object): + class ConversionActionType(enum.IntEnum): + """ + Possible types of a conversion action. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + AD_CALL (int): Conversions that occur when a user clicks on an ad's call extension. + CLICK_TO_CALL (int): Conversions that occur when a user on a mobile device clicks a phone + number. + GOOGLE_PLAY_DOWNLOAD (int): Conversions that occur when a user downloads a mobile app from the Google + Play Store. + GOOGLE_PLAY_IN_APP_PURCHASE (int): Conversions that occur when a user makes a purchase in an app through + Android billing. + UPLOAD_CALLS (int): Call conversions that are tracked by the advertiser and uploaded. + UPLOAD_CLICKS (int): Conversions that are tracked by the advertiser and uploaded with + attributed clicks. + 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. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + AD_CALL = 2 + CLICK_TO_CALL = 3 + GOOGLE_PLAY_DOWNLOAD = 4 + GOOGLE_PLAY_IN_APP_PURCHASE = 5 + UPLOAD_CALLS = 6 + UPLOAD_CLICKS = 7 + WEBPAGE = 8 + WEBSITE_CALL = 9 + + +class ConversionAttributionEventTypeEnum(object): + class ConversionAttributionEventType(enum.IntEnum): + """ + The event type of conversions that are attributed to. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Represents value unknown in this version. + IMPRESSION (int): The conversion is attributed to an impression. + INTERACTION (int): The conversion is attributed to an interaction. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + IMPRESSION = 2 + INTERACTION = 3 + + +class ConversionLagBucketEnum(object): + class ConversionLagBucket(enum.IntEnum): + """ + Enum representing the number of days between impression and conversion. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + LESS_THAN_ONE_DAY (int): Conversion lag bucket from 0 to 1 day. 0 day is included, 1 day is not. + ONE_TO_TWO_DAYS (int): Conversion lag bucket from 1 to 2 days. 1 day is included, 2 days is not. + TWO_TO_THREE_DAYS (int): Conversion lag bucket from 2 to 3 days. 2 days is included, + 3 days is not. + THREE_TO_FOUR_DAYS (int): Conversion lag bucket from 3 to 4 days. 3 days is included, + 4 days is not. + FOUR_TO_FIVE_DAYS (int): Conversion lag bucket from 4 to 5 days. 4 days is included, + 5 days is not. + FIVE_TO_SIX_DAYS (int): Conversion lag bucket from 5 to 6 days. 5 days is included, + 6 days is not. + SIX_TO_SEVEN_DAYS (int): Conversion lag bucket from 6 to 7 days. 6 days is included, + 7 days is not. + SEVEN_TO_EIGHT_DAYS (int): Conversion lag bucket from 7 to 8 days. 7 days is included, + 8 days is not. + EIGHT_TO_NINE_DAYS (int): Conversion lag bucket from 8 to 9 days. 8 days is included, + 9 days is not. + NINE_TO_TEN_DAYS (int): Conversion lag bucket from 9 to 10 days. 9 days is included, + 10 days is not. + TEN_TO_ELEVEN_DAYS (int): Conversion lag bucket from 10 to 11 days. 10 days is included, + 11 days is not. + ELEVEN_TO_TWELVE_DAYS (int): Conversion lag bucket from 11 to 12 days. 11 days is included, + 12 days is not. + TWELVE_TO_THIRTEEN_DAYS (int): Conversion lag bucket from 12 to 13 days. 12 days is included, + 13 days is not. + THIRTEEN_TO_FOURTEEN_DAYS (int): Conversion lag bucket from 13 to 14 days. 13 days is included, + 14 days is not. + FOURTEEN_TO_TWENTY_ONE_DAYS (int): Conversion lag bucket from 14 to 21 days. 14 days is included, + 21 days is not. + TWENTY_ONE_TO_THIRTY_DAYS (int): Conversion lag bucket from 21 to 30 days. 21 days is included, + 30 days is not. + THIRTY_TO_FORTY_FIVE_DAYS (int): Conversion lag bucket from 30 to 45 days. 30 days is included, + 45 days is not. + FORTY_FIVE_TO_SIXTY_DAYS (int): Conversion lag bucket from 45 to 60 days. 45 days is included, + 60 days is not. + SIXTY_TO_NINETY_DAYS (int): Conversion lag bucket from 60 to 90 days. 60 days is included, + 90 days is not. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + LESS_THAN_ONE_DAY = 2 + ONE_TO_TWO_DAYS = 3 + TWO_TO_THREE_DAYS = 4 + THREE_TO_FOUR_DAYS = 5 + FOUR_TO_FIVE_DAYS = 6 + FIVE_TO_SIX_DAYS = 7 + SIX_TO_SEVEN_DAYS = 8 + SEVEN_TO_EIGHT_DAYS = 9 + EIGHT_TO_NINE_DAYS = 10 + NINE_TO_TEN_DAYS = 11 + TEN_TO_ELEVEN_DAYS = 12 + ELEVEN_TO_TWELVE_DAYS = 13 + TWELVE_TO_THIRTEEN_DAYS = 14 + THIRTEEN_TO_FOURTEEN_DAYS = 15 + FOURTEEN_TO_TWENTY_ONE_DAYS = 16 + TWENTY_ONE_TO_THIRTY_DAYS = 17 + THIRTY_TO_FORTY_FIVE_DAYS = 18 + FORTY_FIVE_TO_SIXTY_DAYS = 19 + SIXTY_TO_NINETY_DAYS = 20 + + +class ConversionOrAdjustmentLagBucketEnum(object): + class ConversionOrAdjustmentLagBucket(enum.IntEnum): + """ + Enum representing the number of days between the impression and the + conversion or between the impression and adjustments to the conversion. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + CONVERSION_LESS_THAN_ONE_DAY (int): Conversion lag bucket from 0 to 1 day. 0 day is included, 1 day is not. + CONVERSION_ONE_TO_TWO_DAYS (int): Conversion lag bucket from 1 to 2 days. 1 day is included, 2 days is not. + CONVERSION_TWO_TO_THREE_DAYS (int): Conversion lag bucket from 2 to 3 days. 2 days is included, + 3 days is not. + CONVERSION_THREE_TO_FOUR_DAYS (int): Conversion lag bucket from 3 to 4 days. 3 days is included, + 4 days is not. + CONVERSION_FOUR_TO_FIVE_DAYS (int): Conversion lag bucket from 4 to 5 days. 4 days is included, + 5 days is not. + CONVERSION_FIVE_TO_SIX_DAYS (int): Conversion lag bucket from 5 to 6 days. 5 days is included, + 6 days is not. + CONVERSION_SIX_TO_SEVEN_DAYS (int): Conversion lag bucket from 6 to 7 days. 6 days is included, + 7 days is not. + CONVERSION_SEVEN_TO_EIGHT_DAYS (int): Conversion lag bucket from 7 to 8 days. 7 days is included, + 8 days is not. + CONVERSION_EIGHT_TO_NINE_DAYS (int): Conversion lag bucket from 8 to 9 days. 8 days is included, + 9 days is not. + CONVERSION_NINE_TO_TEN_DAYS (int): Conversion lag bucket from 9 to 10 days. 9 days is included, + 10 days is not. + CONVERSION_TEN_TO_ELEVEN_DAYS (int): Conversion lag bucket from 10 to 11 days. 10 days is included, + 11 days is not. + CONVERSION_ELEVEN_TO_TWELVE_DAYS (int): Conversion lag bucket from 11 to 12 days. 11 days is included, + 12 days is not. + CONVERSION_TWELVE_TO_THIRTEEN_DAYS (int): Conversion lag bucket from 12 to 13 days. 12 days is included, + 13 days is not. + CONVERSION_THIRTEEN_TO_FOURTEEN_DAYS (int): Conversion lag bucket from 13 to 14 days. 13 days is included, + 14 days is not. + CONVERSION_FOURTEEN_TO_TWENTY_ONE_DAYS (int): Conversion lag bucket from 14 to 21 days. 14 days is included, + 21 days is not. + CONVERSION_TWENTY_ONE_TO_THIRTY_DAYS (int): Conversion lag bucket from 21 to 30 days. 21 days is included, + 30 days is not. + CONVERSION_THIRTY_TO_FORTY_FIVE_DAYS (int): Conversion lag bucket from 30 to 45 days. 30 days is included, + 45 days is not. + CONVERSION_FORTY_FIVE_TO_SIXTY_DAYS (int): Conversion lag bucket from 45 to 60 days. 45 days is included, + 60 days is not. + CONVERSION_SIXTY_TO_NINETY_DAYS (int): Conversion lag bucket from 60 to 90 days. 60 days is included, + 90 days is not. + ADJUSTMENT_LESS_THAN_ONE_DAY (int): Conversion adjustment lag bucket from 0 to 1 day. 0 day is included, + 1 day is not. + ADJUSTMENT_ONE_TO_TWO_DAYS (int): Conversion adjustment lag bucket from 1 to 2 days. 1 day is included, + 2 days is not. + ADJUSTMENT_TWO_TO_THREE_DAYS (int): Conversion adjustment lag bucket from 2 to 3 days. 2 days is included, + 3 days is not. + ADJUSTMENT_THREE_TO_FOUR_DAYS (int): Conversion adjustment lag bucket from 3 to 4 days. 3 days is included, + 4 days is not. + ADJUSTMENT_FOUR_TO_FIVE_DAYS (int): Conversion adjustment lag bucket from 4 to 5 days. 4 days is included, + 5 days is not. + ADJUSTMENT_FIVE_TO_SIX_DAYS (int): Conversion adjustment lag bucket from 5 to 6 days. 5 days is included, + 6 days is not. + ADJUSTMENT_SIX_TO_SEVEN_DAYS (int): Conversion adjustment lag bucket from 6 to 7 days. 6 days is included, + 7 days is not. + ADJUSTMENT_SEVEN_TO_EIGHT_DAYS (int): Conversion adjustment lag bucket from 7 to 8 days. 7 days is included, + 8 days is not. + ADJUSTMENT_EIGHT_TO_NINE_DAYS (int): Conversion adjustment lag bucket from 8 to 9 days. 8 days is included, + 9 days is not. + ADJUSTMENT_NINE_TO_TEN_DAYS (int): Conversion adjustment lag bucket from 9 to 10 days. 9 days is included, + 10 days is not. + ADJUSTMENT_TEN_TO_ELEVEN_DAYS (int): Conversion adjustment lag bucket from 10 to 11 days. 10 days is included, + 11 days is not. + ADJUSTMENT_ELEVEN_TO_TWELVE_DAYS (int): Conversion adjustment lag bucket from 11 to 12 days. 11 days is included, + 12 days is not. + ADJUSTMENT_TWELVE_TO_THIRTEEN_DAYS (int): Conversion adjustment lag bucket from 12 to 13 days. 12 days is included, + 13 days is not. + ADJUSTMENT_THIRTEEN_TO_FOURTEEN_DAYS (int): Conversion adjustment lag bucket from 13 to 14 days. 13 days is included, + 14 days is not. + ADJUSTMENT_FOURTEEN_TO_TWENTY_ONE_DAYS (int): Conversion adjustment lag bucket from 14 to 21 days. 14 days is included, + 21 days is not. + ADJUSTMENT_TWENTY_ONE_TO_THIRTY_DAYS (int): Conversion adjustment lag bucket from 21 to 30 days. 21 days is included, + 30 days is not. + ADJUSTMENT_THIRTY_TO_FORTY_FIVE_DAYS (int): Conversion adjustment lag bucket from 30 to 45 days. 30 days is included, + 45 days is not. + ADJUSTMENT_FORTY_FIVE_TO_SIXTY_DAYS (int): Conversion adjustment lag bucket from 45 to 60 days. 45 days is included, + 60 days is not. + ADJUSTMENT_SIXTY_TO_NINETY_DAYS (int): Conversion adjustment lag bucket from 60 to 90 days. 60 days is included, + 90 days is not. + ADJUSTMENT_NINETY_TO_ONE_HUNDRED_AND_FORTY_FIVE_DAYS (int): Conversion adjustment lag bucket from 90 to 145 days. 90 days is + included, 145 days is not. + CONVERSION_UNKNOWN (int): Conversion lag bucket UNKNOWN. This is for dates before conversion lag + bucket was available in Google Ads. + ADJUSTMENT_UNKNOWN (int): Conversion adjustment lag bucket UNKNOWN. This is for dates before + conversion adjustment lag bucket was available in Google Ads. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + CONVERSION_LESS_THAN_ONE_DAY = 2 + CONVERSION_ONE_TO_TWO_DAYS = 3 + CONVERSION_TWO_TO_THREE_DAYS = 4 + CONVERSION_THREE_TO_FOUR_DAYS = 5 + CONVERSION_FOUR_TO_FIVE_DAYS = 6 + CONVERSION_FIVE_TO_SIX_DAYS = 7 + CONVERSION_SIX_TO_SEVEN_DAYS = 8 + CONVERSION_SEVEN_TO_EIGHT_DAYS = 9 + CONVERSION_EIGHT_TO_NINE_DAYS = 10 + CONVERSION_NINE_TO_TEN_DAYS = 11 + CONVERSION_TEN_TO_ELEVEN_DAYS = 12 + CONVERSION_ELEVEN_TO_TWELVE_DAYS = 13 + CONVERSION_TWELVE_TO_THIRTEEN_DAYS = 14 + CONVERSION_THIRTEEN_TO_FOURTEEN_DAYS = 15 + CONVERSION_FOURTEEN_TO_TWENTY_ONE_DAYS = 16 + CONVERSION_TWENTY_ONE_TO_THIRTY_DAYS = 17 + CONVERSION_THIRTY_TO_FORTY_FIVE_DAYS = 18 + CONVERSION_FORTY_FIVE_TO_SIXTY_DAYS = 19 + CONVERSION_SIXTY_TO_NINETY_DAYS = 20 + ADJUSTMENT_LESS_THAN_ONE_DAY = 21 + ADJUSTMENT_ONE_TO_TWO_DAYS = 22 + ADJUSTMENT_TWO_TO_THREE_DAYS = 23 + ADJUSTMENT_THREE_TO_FOUR_DAYS = 24 + ADJUSTMENT_FOUR_TO_FIVE_DAYS = 25 + ADJUSTMENT_FIVE_TO_SIX_DAYS = 26 + ADJUSTMENT_SIX_TO_SEVEN_DAYS = 27 + ADJUSTMENT_SEVEN_TO_EIGHT_DAYS = 28 + ADJUSTMENT_EIGHT_TO_NINE_DAYS = 29 + ADJUSTMENT_NINE_TO_TEN_DAYS = 30 + ADJUSTMENT_TEN_TO_ELEVEN_DAYS = 31 + ADJUSTMENT_ELEVEN_TO_TWELVE_DAYS = 32 + ADJUSTMENT_TWELVE_TO_THIRTEEN_DAYS = 33 + ADJUSTMENT_THIRTEEN_TO_FOURTEEN_DAYS = 34 + ADJUSTMENT_FOURTEEN_TO_TWENTY_ONE_DAYS = 35 + ADJUSTMENT_TWENTY_ONE_TO_THIRTY_DAYS = 36 + ADJUSTMENT_THIRTY_TO_FORTY_FIVE_DAYS = 37 + ADJUSTMENT_FORTY_FIVE_TO_SIXTY_DAYS = 38 + ADJUSTMENT_SIXTY_TO_NINETY_DAYS = 39 + ADJUSTMENT_NINETY_TO_ONE_HUNDRED_AND_FORTY_FIVE_DAYS = 40 + CONVERSION_UNKNOWN = 41 + ADJUSTMENT_UNKNOWN = 42 + + +class ConversionUploadErrorEnum(object): + class ConversionUploadError(enum.IntEnum): + """ + Enum describing possible conversion upload errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + TOO_MANY_CONVERSIONS_IN_REQUEST (int): The request contained more than 2000 conversions. + UNPARSEABLE_GCLID (int): The specified gclid could not be decoded. + CONVERSION_PRECEDES_GCLID (int): The specified conversion\_date\_time is before the event time associated + with the given gclid. + EXPIRED_GCLID (int): The click associated with the given gclid is either too old to be + 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. + 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. + UNAUTHORIZED_CUSTOMER (int): The click associated with the given gclid is owned by a customer + account that the uploading customer does not manage. + INVALID_CONVERSION_ACTION (int): No upload eligible conversion action that matches the provided + information can be found for the customer. + TOO_RECENT_CONVERSION_ACTION (int): The specified conversion action was created too recently. + Please try the upload again after 4-6 hours have passed since the + conversion action was created. + CONVERSION_TRACKING_NOT_ENABLED_AT_IMPRESSION_TIME (int): The click associated with the given gclid does not contain conversion + tracking information. + EXTERNAL_ATTRIBUTION_DATA_SET_FOR_NON_EXTERNALLY_ATTRIBUTED_CONVERSION_ACTION (int): The specified conversion action does not use an external attribution + model, but external\_attribution\_data was set. + EXTERNAL_ATTRIBUTION_DATA_NOT_SET_FOR_EXTERNALLY_ATTRIBUTED_CONVERSION_ACTION (int): The specified conversion action uses an external attribution model, but + external\_attribution\_data or one of its contained fields was not set. + Both external\_attribution\_credit and external\_attribution\_model must + be set for externally attributed conversion actions. + ORDER_ID_NOT_PERMITTED_FOR_EXTERNALLY_ATTRIBUTED_CONVERSION_ACTION (int): Order IDs are not supported for conversion actions which use an external + attribution model. + ORDER_ID_ALREADY_IN_USE (int): A conversion with the same order id and conversion action combination + 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. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + TOO_MANY_CONVERSIONS_IN_REQUEST = 2 + UNPARSEABLE_GCLID = 3 + CONVERSION_PRECEDES_GCLID = 4 + EXPIRED_GCLID = 5 + TOO_RECENT_GCLID = 6 + GCLID_NOT_FOUND = 7 + UNAUTHORIZED_CUSTOMER = 8 + INVALID_CONVERSION_ACTION = 9 + TOO_RECENT_CONVERSION_ACTION = 10 + CONVERSION_TRACKING_NOT_ENABLED_AT_IMPRESSION_TIME = 11 + EXTERNAL_ATTRIBUTION_DATA_SET_FOR_NON_EXTERNALLY_ATTRIBUTED_CONVERSION_ACTION = 12 + EXTERNAL_ATTRIBUTION_DATA_NOT_SET_FOR_EXTERNALLY_ATTRIBUTED_CONVERSION_ACTION = 13 + ORDER_ID_NOT_PERMITTED_FOR_EXTERNALLY_ATTRIBUTED_CONVERSION_ACTION = 14 + ORDER_ID_ALREADY_IN_USE = 15 + DUPLICATE_ORDER_ID = 16 + + +class CountryCodeErrorEnum(object): + class CountryCodeError(enum.IntEnum): + """ + Enum describing country code errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + INVALID_COUNTRY_CODE (int): The country code is invalid. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + INVALID_COUNTRY_CODE = 2 + + +class CriterionCategoryChannelAvailabilityModeEnum(object): + class CriterionCategoryChannelAvailabilityMode(enum.IntEnum): + """ + Enum containing the possible CriterionCategoryChannelAvailabilityMode. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + ALL_CHANNELS (int): The category is available to campaigns of all channel types and subtypes. + CHANNEL_TYPE_AND_ALL_SUBTYPES (int): The category is available to campaigns of a specific channel type, + including all subtypes under it. + CHANNEL_TYPE_AND_SUBSET_SUBTYPES (int): The category is available to campaigns of a specific channel type and + subtype(s). + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + ALL_CHANNELS = 2 + CHANNEL_TYPE_AND_ALL_SUBTYPES = 3 + CHANNEL_TYPE_AND_SUBSET_SUBTYPES = 4 + + +class CriterionCategoryLocaleAvailabilityModeEnum(object): + class CriterionCategoryLocaleAvailabilityMode(enum.IntEnum): + """ + Enum containing the possible CriterionCategoryLocaleAvailabilityMode. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + ALL_LOCALES (int): The category is available to campaigns of all locales. + COUNTRY_AND_ALL_LANGUAGES (int): The category is available to campaigns within a list of countries, + regardless of language. + LANGUAGE_AND_ALL_COUNTRIES (int): The category is available to campaigns within a list of languages, + regardless of country. + COUNTRY_AND_LANGUAGE (int): The category is available to campaigns within a list of country, language + pairs. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + ALL_LOCALES = 2 + COUNTRY_AND_ALL_LANGUAGES = 3 + LANGUAGE_AND_ALL_COUNTRIES = 4 + COUNTRY_AND_LANGUAGE = 5 + + +class CriterionErrorEnum(object): + class CriterionError(enum.IntEnum): + """ + Enum describing possible criterion errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + CONCRETE_TYPE_REQUIRED (int): Concrete type of criterion is required for CREATE and UPDATE operations. + INVALID_EXCLUDED_CATEGORY (int): The category requested for exclusion is invalid. + INVALID_KEYWORD_TEXT (int): Invalid keyword criteria text. + KEYWORD_TEXT_TOO_LONG (int): Keyword text should be less than 80 chars. + KEYWORD_HAS_TOO_MANY_WORDS (int): Keyword text has too many words. + KEYWORD_HAS_INVALID_CHARS (int): Keyword text has invalid characters or symbols. + INVALID_PLACEMENT_URL (int): Invalid placement URL. + INVALID_USER_LIST (int): Invalid user list criterion. + INVALID_USER_INTEREST (int): Invalid user interest criterion. + INVALID_FORMAT_FOR_PLACEMENT_URL (int): Placement URL has wrong format. + PLACEMENT_URL_IS_TOO_LONG (int): Placement URL is too long. + PLACEMENT_URL_HAS_ILLEGAL_CHAR (int): Indicates the URL contains an illegal character. + PLACEMENT_URL_HAS_MULTIPLE_SITES_IN_LINE (int): Indicates the URL contains multiple comma separated URLs. + PLACEMENT_IS_NOT_AVAILABLE_FOR_TARGETING_OR_EXCLUSION (int): Indicates the domain is blacklisted. + INVALID_TOPIC_PATH (int): Invalid topic path. + INVALID_YOUTUBE_CHANNEL_ID (int): The YouTube Channel Id is invalid. + INVALID_YOUTUBE_VIDEO_ID (int): The YouTube Video Id is invalid. + YOUTUBE_VERTICAL_CHANNEL_DEPRECATED (int): Indicates the placement is a YouTube vertical channel, which is no longer + supported. + YOUTUBE_DEMOGRAPHIC_CHANNEL_DEPRECATED (int): Indicates the placement is a YouTube demographic channel, which is no + longer supported. + YOUTUBE_URL_UNSUPPORTED (int): YouTube urls are not supported in Placement criterion. Use YouTubeChannel + and YouTubeVideo criterion instead. + 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. + CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SEARCH_CAMPAIGNS (int): Not allowed to add display only UserLists to search plus campaigns. + CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SHOPPING_CAMPAIGNS (int): Not allowed to add display only UserLists to shopping campaigns. + CANNOT_ADD_USER_INTERESTS_TO_SEARCH_CAMPAIGNS (int): Not allowed to add User interests to search only campaigns. + CANNOT_SET_BIDS_ON_CRITERION_TYPE_IN_SEARCH_CAMPAIGNS (int): Not allowed to set bids for this criterion type in search campaigns + CANNOT_ADD_URLS_TO_CRITERION_TYPE_FOR_CAMPAIGN_TYPE (int): Final URLs, URL Templates and CustomParameters cannot be set for the + criterion types of Gender, AgeRange, UserList, Placement, MobileApp, and + MobileAppCategory in search campaigns and shopping campaigns. + INVALID_IP_ADDRESS (int): IP address is not valid. + INVALID_IP_FORMAT (int): IP format is not valid. + INVALID_MOBILE_APP (int): Mobile application is not valid. + INVALID_MOBILE_APP_CATEGORY (int): Mobile application category is not valid. + INVALID_CRITERION_ID (int): The CriterionId does not exist or is of the incorrect type. + CANNOT_TARGET_CRITERION (int): The Criterion is not allowed to be targeted. + CANNOT_TARGET_OBSOLETE_CRITERION (int): The criterion is not allowed to be targeted as it is deprecated. + CRITERION_ID_AND_TYPE_MISMATCH (int): The CriterionId is not valid for the type. + INVALID_PROXIMITY_RADIUS (int): Distance for the radius for the proximity criterion is invalid. + INVALID_PROXIMITY_RADIUS_UNITS (int): Units for the distance for the radius for the proximity criterion is + invalid. + INVALID_STREETADDRESS_LENGTH (int): Street address in the address is not valid. + INVALID_CITYNAME_LENGTH (int): City name in the address is not valid. + INVALID_REGIONCODE_LENGTH (int): Region code in the address is not valid. + INVALID_REGIONNAME_LENGTH (int): Region name in the address is not valid. + INVALID_POSTALCODE_LENGTH (int): Postal code in the address is not valid. + INVALID_COUNTRY_CODE (int): Country code in the address is not valid. + INVALID_LATITUDE (int): Latitude for the GeoPoint is not valid. + INVALID_LONGITUDE (int): Longitude for the GeoPoint is not valid. + PROXIMITY_GEOPOINT_AND_ADDRESS_BOTH_CANNOT_BE_NULL (int): The Proximity input is not valid. Both address and geoPoint cannot be + null. + INVALID_PROXIMITY_ADDRESS (int): The Proximity address cannot be geocoded to a valid lat/long. + INVALID_USER_DOMAIN_NAME (int): User domain name is not valid. + CRITERION_PARAMETER_TOO_LONG (int): Length of serialized criterion parameter exceeded size limit. + AD_SCHEDULE_TIME_INTERVALS_OVERLAP (int): Time interval in the AdSchedule overlaps with another AdSchedule. + AD_SCHEDULE_INTERVAL_CANNOT_SPAN_MULTIPLE_DAYS (int): AdSchedule time interval cannot span multiple days. + AD_SCHEDULE_INVALID_TIME_INTERVAL (int): AdSchedule time interval specified is invalid, endTime cannot be earlier + than startTime. + AD_SCHEDULE_EXCEEDED_INTERVALS_PER_DAY_LIMIT (int): The number of AdSchedule entries in a day exceeds the limit. + AD_SCHEDULE_CRITERION_ID_MISMATCHING_FIELDS (int): CriteriaId does not match the interval of the AdSchedule specified. + CANNOT_BID_MODIFY_CRITERION_TYPE (int): Cannot set bid modifier for this criterion type. + CANNOT_BID_MODIFY_CRITERION_CAMPAIGN_OPTED_OUT (int): Cannot bid modify criterion, since it is opted out of the campaign. + CANNOT_BID_MODIFY_NEGATIVE_CRITERION (int): Cannot set bid modifier for a negative criterion. + BID_MODIFIER_ALREADY_EXISTS (int): Bid Modifier already exists. Use SET operation to update. + FEED_ID_NOT_ALLOWED (int): Feed Id is not allowed in these Location Groups. + ACCOUNT_INELIGIBLE_FOR_CRITERIA_TYPE (int): The account may not use the requested criteria type. For example, some + accounts are restricted to keywords only. + CRITERIA_TYPE_INVALID_FOR_BIDDING_STRATEGY (int): The requested criteria type cannot be used with campaign or ad group + bidding strategy. + 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 + criteria can be added. + INVALID_MATCHING_FUNCTION (int): Matching function is invalid. + LOCATION_FILTER_NOT_ALLOWED (int): Filter parameters not allowed for location groups targeting. + LOCATION_FILTER_INVALID (int): Given location filter parameter is invalid for location groups targeting. + CANNOT_ATTACH_CRITERIA_AT_CAMPAIGN_AND_ADGROUP (int): Criteria type cannot be associated with a campaign and its ad group(s) + simultaneously. + HOTEL_LENGTH_OF_STAY_OVERLAPS_WITH_EXISTING_CRITERION (int): Range represented by hotel length of stay's min nights and max nights + overlaps with an existing criterion. + HOTEL_ADVANCE_BOOKING_WINDOW_OVERLAPS_WITH_EXISTING_CRITERION (int): Range represented by hotel advance booking window's min days and max days + overlaps with an existing criterion. + FIELD_INCOMPATIBLE_WITH_NEGATIVE_TARGETING (int): The field is not allowed to be set when the negative field is set to + true, e.g. we don't allow bids in negative ad group or campaign criteria. + INVALID_WEBPAGE_CONDITION (int): The combination of operand and operator in webpage condition is invalid. + INVALID_WEBPAGE_CONDITION_URL (int): The URL of webpage condition is invalid. + WEBPAGE_CONDITION_URL_CANNOT_BE_EMPTY (int): The URL of webpage condition cannot be empty or contain white space. + WEBPAGE_CONDITION_URL_UNSUPPORTED_PROTOCOL (int): The URL of webpage condition contains an unsupported protocol. + WEBPAGE_CONDITION_URL_CANNOT_BE_IP_ADDRESS (int): The URL of webpage condition cannot be an IP address. + WEBPAGE_CONDITION_URL_DOMAIN_NOT_CONSISTENT_WITH_CAMPAIGN_SETTING (int): The domain of the URL is not consistent with the domain in campaign + setting. + WEBPAGE_CONDITION_URL_CANNOT_BE_PUBLIC_SUFFIX (int): The URL of webpage condition cannot be a public suffix itself. + WEBPAGE_CONDITION_URL_INVALID_PUBLIC_SUFFIX (int): The URL of webpage condition has an invalid public suffix. + WEBPAGE_CONDITION_URL_VALUE_TRACK_VALUE_NOT_SUPPORTED (int): Value track parameter is not supported in webpage condition URL. + 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. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + CONCRETE_TYPE_REQUIRED = 2 + INVALID_EXCLUDED_CATEGORY = 3 + INVALID_KEYWORD_TEXT = 4 + KEYWORD_TEXT_TOO_LONG = 5 + KEYWORD_HAS_TOO_MANY_WORDS = 6 + KEYWORD_HAS_INVALID_CHARS = 7 + INVALID_PLACEMENT_URL = 8 + INVALID_USER_LIST = 9 + INVALID_USER_INTEREST = 10 + INVALID_FORMAT_FOR_PLACEMENT_URL = 11 + PLACEMENT_URL_IS_TOO_LONG = 12 + PLACEMENT_URL_HAS_ILLEGAL_CHAR = 13 + PLACEMENT_URL_HAS_MULTIPLE_SITES_IN_LINE = 14 + PLACEMENT_IS_NOT_AVAILABLE_FOR_TARGETING_OR_EXCLUSION = 15 + INVALID_TOPIC_PATH = 16 + INVALID_YOUTUBE_CHANNEL_ID = 17 + INVALID_YOUTUBE_VIDEO_ID = 18 + YOUTUBE_VERTICAL_CHANNEL_DEPRECATED = 19 + YOUTUBE_DEMOGRAPHIC_CHANNEL_DEPRECATED = 20 + 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 + CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SEARCH_CAMPAIGNS = 29 + CANNOT_ADD_DISPLAY_ONLY_LISTS_TO_SHOPPING_CAMPAIGNS = 30 + CANNOT_ADD_USER_INTERESTS_TO_SEARCH_CAMPAIGNS = 31 + CANNOT_SET_BIDS_ON_CRITERION_TYPE_IN_SEARCH_CAMPAIGNS = 32 + CANNOT_ADD_URLS_TO_CRITERION_TYPE_FOR_CAMPAIGN_TYPE = 33 + INVALID_IP_ADDRESS = 34 + INVALID_IP_FORMAT = 35 + INVALID_MOBILE_APP = 36 + INVALID_MOBILE_APP_CATEGORY = 37 + INVALID_CRITERION_ID = 38 + CANNOT_TARGET_CRITERION = 39 + CANNOT_TARGET_OBSOLETE_CRITERION = 40 + CRITERION_ID_AND_TYPE_MISMATCH = 41 + INVALID_PROXIMITY_RADIUS = 42 + INVALID_PROXIMITY_RADIUS_UNITS = 43 + INVALID_STREETADDRESS_LENGTH = 44 + INVALID_CITYNAME_LENGTH = 45 + INVALID_REGIONCODE_LENGTH = 46 + INVALID_REGIONNAME_LENGTH = 47 + INVALID_POSTALCODE_LENGTH = 48 + INVALID_COUNTRY_CODE = 49 + INVALID_LATITUDE = 50 + INVALID_LONGITUDE = 51 + PROXIMITY_GEOPOINT_AND_ADDRESS_BOTH_CANNOT_BE_NULL = 52 + INVALID_PROXIMITY_ADDRESS = 53 + INVALID_USER_DOMAIN_NAME = 54 + CRITERION_PARAMETER_TOO_LONG = 55 + AD_SCHEDULE_TIME_INTERVALS_OVERLAP = 56 + AD_SCHEDULE_INTERVAL_CANNOT_SPAN_MULTIPLE_DAYS = 57 + AD_SCHEDULE_INVALID_TIME_INTERVAL = 58 + AD_SCHEDULE_EXCEEDED_INTERVALS_PER_DAY_LIMIT = 59 + AD_SCHEDULE_CRITERION_ID_MISMATCHING_FIELDS = 60 + CANNOT_BID_MODIFY_CRITERION_TYPE = 61 + CANNOT_BID_MODIFY_CRITERION_CAMPAIGN_OPTED_OUT = 62 + CANNOT_BID_MODIFY_NEGATIVE_CRITERION = 63 + BID_MODIFIER_ALREADY_EXISTS = 64 + FEED_ID_NOT_ALLOWED = 65 + ACCOUNT_INELIGIBLE_FOR_CRITERIA_TYPE = 66 + 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 + LOCATION_FILTER_NOT_ALLOWED = 79 + LOCATION_FILTER_INVALID = 80 + CANNOT_ATTACH_CRITERIA_AT_CAMPAIGN_AND_ADGROUP = 81 + HOTEL_LENGTH_OF_STAY_OVERLAPS_WITH_EXISTING_CRITERION = 82 + HOTEL_ADVANCE_BOOKING_WINDOW_OVERLAPS_WITH_EXISTING_CRITERION = 83 + FIELD_INCOMPATIBLE_WITH_NEGATIVE_TARGETING = 84 + INVALID_WEBPAGE_CONDITION = 85 + INVALID_WEBPAGE_CONDITION_URL = 86 + WEBPAGE_CONDITION_URL_CANNOT_BE_EMPTY = 87 + WEBPAGE_CONDITION_URL_UNSUPPORTED_PROTOCOL = 88 + WEBPAGE_CONDITION_URL_CANNOT_BE_IP_ADDRESS = 89 + WEBPAGE_CONDITION_URL_DOMAIN_NOT_CONSISTENT_WITH_CAMPAIGN_SETTING = 90 + WEBPAGE_CONDITION_URL_CANNOT_BE_PUBLIC_SUFFIX = 91 + WEBPAGE_CONDITION_URL_INVALID_PUBLIC_SUFFIX = 92 + 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): + class CriterionSystemServingStatus(enum.IntEnum): + """ + Enumerates criterion system serving statuses. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): The value is unknown in this version. + ELIGIBLE (int): Eligible. + RARELY_SERVED (int): Low search volume. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + ELIGIBLE = 2 + RARELY_SERVED = 3 + + +class CriterionTypeEnum(object): + class CriterionType(enum.IntEnum): + """ + Enum describing possible criterion types. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + KEYWORD (int): Keyword. e.g. 'mars cruise'. + PLACEMENT (int): Placement, aka Website. e.g. 'www.flowers4sale.com' + MOBILE_APP_CATEGORY (int): Mobile application categories to target. + MOBILE_APPLICATION (int): Mobile applications to target. + DEVICE (int): Devices to target. + LOCATION (int): Locations to target. + LISTING_GROUP (int): Listing groups to target. + AD_SCHEDULE (int): Ad Schedule. + AGE_RANGE (int): Age range. + GENDER (int): Gender. + INCOME_RANGE (int): Income Range. + PARENTAL_STATUS (int): Parental status. + YOUTUBE_VIDEO (int): YouTube Video. + YOUTUBE_CHANNEL (int): YouTube Channel. + USER_LIST (int): User list. + PROXIMITY (int): Proximity. + TOPIC (int): A topic target on the display network (e.g. "Pets & Animals"). + LISTING_SCOPE (int): Listing scope to target. + LANGUAGE (int): Language. + IP_BLOCK (int): IpBlock. + CONTENT_LABEL (int): Content Label for category exclusion. + CARRIER (int): Carrier. + USER_INTEREST (int): A category the user is interested in. + WEBPAGE (int): Webpage criterion for dynamic search ads. + OPERATING_SYSTEM_VERSION (int): Operating system version. + APP_PAYMENT_MODEL (int): App payment model. + MOBILE_DEVICE (int): Mobile device. + CUSTOM_AFFINITY (int): Custom affinity. + CUSTOM_INTENT (int): Custom intent. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + KEYWORD = 2 + PLACEMENT = 3 + MOBILE_APP_CATEGORY = 4 + MOBILE_APPLICATION = 5 + DEVICE = 6 + LOCATION = 7 + LISTING_GROUP = 8 + AD_SCHEDULE = 9 + AGE_RANGE = 10 + GENDER = 11 + INCOME_RANGE = 12 + PARENTAL_STATUS = 13 + YOUTUBE_VIDEO = 14 + YOUTUBE_CHANNEL = 15 + USER_LIST = 16 + PROXIMITY = 17 + TOPIC = 18 + LISTING_SCOPE = 19 + LANGUAGE = 20 + IP_BLOCK = 21 + CONTENT_LABEL = 22 + CARRIER = 23 + USER_INTEREST = 24 + WEBPAGE = 25 + OPERATING_SYSTEM_VERSION = 26 + APP_PAYMENT_MODEL = 27 + MOBILE_DEVICE = 28 + CUSTOM_AFFINITY = 29 + CUSTOM_INTENT = 30 + + +class CustomInterestErrorEnum(object): + class CustomInterestError(enum.IntEnum): + """ + Enum describing possible custom interest errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + NAME_ALREADY_USED (int): Duplicate custom interest name ignoring case. + CUSTOM_INTEREST_MEMBER_ID_AND_TYPE_PARAMETER_NOT_PRESENT_IN_REMOVE (int): In the remove custom interest member operation, both member ID and pair + [type, parameter] are not present. + TYPE_AND_PARAMETER_NOT_FOUND (int): The pair of [type, parameter] does not exist. + TYPE_AND_PARAMETER_ALREADY_EXISTED (int): The pair of [type, parameter] already exists. + INVALID_CUSTOM_INTEREST_MEMBER_TYPE (int): Unsupported custom interest member type. + CANNOT_REMOVE_WHILE_IN_USE (int): Cannot remove a custom interest while it's still being targeted. + CANNOT_CHANGE_TYPE (int): Cannot mutate custom interest type. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + NAME_ALREADY_USED = 2 + CUSTOM_INTEREST_MEMBER_ID_AND_TYPE_PARAMETER_NOT_PRESENT_IN_REMOVE = 3 + TYPE_AND_PARAMETER_NOT_FOUND = 4 + TYPE_AND_PARAMETER_ALREADY_EXISTED = 5 + INVALID_CUSTOM_INTEREST_MEMBER_TYPE = 6 + CANNOT_REMOVE_WHILE_IN_USE = 7 + CANNOT_CHANGE_TYPE = 8 + + +class CustomInterestMemberTypeEnum(object): + class CustomInterestMemberType(enum.IntEnum): + """ + Enum containing possible custom interest member types. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + KEYWORD (int): Custom interest member type KEYWORD. + URL (int): Custom interest member type URL. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + KEYWORD = 2 + URL = 3 + + +class CustomInterestStatusEnum(object): + class CustomInterestStatus(enum.IntEnum): + """ + Enum containing possible custom interest types. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + ENABLED (int): Enabled status - custom interest is enabled and can be targeted to. + REMOVED (int): Removed status - custom interest is removed and cannot be used for + targeting. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + ENABLED = 2 + REMOVED = 3 + + +class CustomInterestTypeEnum(object): + class CustomInterestType(enum.IntEnum): + """ + Enum containing possible custom interest types. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + CUSTOM_AFFINITY (int): Allows brand advertisers to define custom affinity audience lists. + CUSTOM_INTENT (int): Allows advertisers to define custom intent audience lists. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + CUSTOM_AFFINITY = 2 + CUSTOM_INTENT = 3 + + +class CustomPlaceholderFieldEnum(object): + class CustomPlaceholderField(enum.IntEnum): + """ + Possible values for Custom placeholder fields. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + ID (int): Data Type: STRING. Required. Combination ID and ID2 must be unique per + offer. + ID2 (int): Data Type: STRING. Combination ID and ID2 must be unique per offer. + ITEM_TITLE (int): Data Type: STRING. Required. Main headline with product name to be shown + in dynamic ad. + ITEM_SUBTITLE (int): Data Type: STRING. Optional text to be shown in the image ad. + ITEM_DESCRIPTION (int): Data Type: STRING. Optional description of the product to be shown in the + ad. + ITEM_ADDRESS (int): Data Type: STRING. Full address of your offer or service, including + postal code. This will be used to identify the closest product to the + user when there are multiple offers in the feed that are relevant to the + user. + PRICE (int): Data Type: STRING. Price to be shown in the ad. + Example: "100.00 USD" + FORMATTED_PRICE (int): Data Type: STRING. Formatted price to be shown in the ad. + Example: "Starting at $100.00 USD", "$80 - $100" + SALE_PRICE (int): Data Type: STRING. Sale price to be shown in the ad. + Example: "80.00 USD" + FORMATTED_SALE_PRICE (int): Data Type: STRING. Formatted sale price to be shown in the ad. + Example: "On sale for $80.00", "$60 - $80" + IMAGE_URL (int): Data Type: URL. Image to be displayed in the ad. Highly recommended for + image ads. + ITEM_CATEGORY (int): Data Type: STRING. Used as a recommendation engine signal to serve items + in the same category. + FINAL_URLS (int): Data Type: URL\_LIST. Final URLs for the ad when using Upgraded URLs. + User will be redirected to these URLs when they click on an ad, or when + they click on a specific product for ads that have multiple products. + FINAL_MOBILE_URLS (int): Data Type: URL\_LIST. Final mobile URLs for the ad when using Upgraded + URLs. + TRACKING_URL (int): Data Type: URL. Tracking template for the ad when using Upgraded URLs. + CONTEXTUAL_KEYWORDS (int): Data Type: STRING\_LIST. Keywords used for product retrieval. + ANDROID_APP_LINK (int): Data Type: STRING. Android app link. Must be formatted as: + android-app://{package\_id}/{scheme}/{host\_path}. The components are + defined as follows: package\_id: app ID as specified in Google Play. + scheme: the scheme to pass to the application. Can be HTTP, or a custom + scheme. host\_path: identifies the specific content within your + application. + SIMILAR_IDS (int): Data Type: STRING\_LIST. List of recommended IDs to show together with + this item. + IOS_APP_LINK (int): Data Type: STRING. iOS app link. + IOS_APP_STORE_ID (int): Data Type: INT64. iOS app store ID. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + ID = 2 + ID2 = 3 + ITEM_TITLE = 4 + ITEM_SUBTITLE = 5 + ITEM_DESCRIPTION = 6 + ITEM_ADDRESS = 7 + PRICE = 8 + FORMATTED_PRICE = 9 + SALE_PRICE = 10 + FORMATTED_SALE_PRICE = 11 + IMAGE_URL = 12 + ITEM_CATEGORY = 13 + FINAL_URLS = 14 + FINAL_MOBILE_URLS = 15 + TRACKING_URL = 16 + CONTEXTUAL_KEYWORDS = 17 + ANDROID_APP_LINK = 18 + SIMILAR_IDS = 19 + IOS_APP_LINK = 20 + IOS_APP_STORE_ID = 21 + + +class CustomerClientLinkErrorEnum(object): + class CustomerClientLinkError(enum.IntEnum): + """ + Enum describing possible CustomerClientLink errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + CLIENT_ALREADY_INVITED_BY_THIS_MANAGER (int): Trying to manage a client that already in being managed by customer. + CLIENT_ALREADY_MANAGED_IN_HIERARCHY (int): Already managed by some other manager in the hierarchy. + CYCLIC_LINK_NOT_ALLOWED (int): Attempt to create a cycle in the hierarchy. + CUSTOMER_HAS_TOO_MANY_ACCOUNTS (int): Managed accounts has the maximum number of linked accounts. + 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. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + CLIENT_ALREADY_INVITED_BY_THIS_MANAGER = 2 + CLIENT_ALREADY_MANAGED_IN_HIERARCHY = 3 + CYCLIC_LINK_NOT_ALLOWED = 4 + CUSTOMER_HAS_TOO_MANY_ACCOUNTS = 5 + CLIENT_HAS_TOO_MANY_INVITATIONS = 6 + CANNOT_HIDE_OR_UNHIDE_MANAGER_ACCOUNTS = 7 + CUSTOMER_HAS_TOO_MANY_ACCOUNTS_AT_MANAGER = 8 + + +class CustomerErrorEnum(object): + class CustomerError(enum.IntEnum): + """ + Set of errors that are related to requests dealing with Customer. + Next id: 26 + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + STATUS_CHANGE_DISALLOWED (int): Customer status is not allowed to be changed from DRAFT and CLOSED. + Currency code and at least one of country code and time zone needs to be + set when status is changed to ENABLED. + ACCOUNT_NOT_SET_UP (int): CustomerService cannot get a customer that has not been fully set up. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + STATUS_CHANGE_DISALLOWED = 2 + ACCOUNT_NOT_SET_UP = 3 + + +class CustomerFeedErrorEnum(object): + class CustomerFeedError(enum.IntEnum): + """ + Enum describing possible customer feed errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE (int): An active feed already exists for this customer and place holder type. + CANNOT_CREATE_FOR_REMOVED_FEED (int): The specified feed is removed. + CANNOT_CREATE_ALREADY_EXISTING_CUSTOMER_FEED (int): The CustomerFeed already exists. Update should be used to modify the + existing CustomerFeed. + CANNOT_MODIFY_REMOVED_CUSTOMER_FEED (int): Cannot update removed customer feed. + INVALID_PLACEHOLDER_TYPE (int): Invalid placeholder type. + MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE (int): Feed mapping for this placeholder type does not exist. + PLACEHOLDER_TYPE_NOT_ALLOWED_ON_CUSTOMER_FEED (int): Placeholder not allowed at the account level. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE = 2 + CANNOT_CREATE_FOR_REMOVED_FEED = 3 + CANNOT_CREATE_ALREADY_EXISTING_CUSTOMER_FEED = 4 + CANNOT_MODIFY_REMOVED_CUSTOMER_FEED = 5 + INVALID_PLACEHOLDER_TYPE = 6 + MISSING_FEEDMAPPING_FOR_PLACEHOLDER_TYPE = 7 + PLACEHOLDER_TYPE_NOT_ALLOWED_ON_CUSTOMER_FEED = 8 + + +class CustomerManagerLinkErrorEnum(object): + class CustomerManagerLinkError(enum.IntEnum): + """ + Enum describing possible CustomerManagerLink errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + NO_PENDING_INVITE (int): No pending invitation. + SAME_CLIENT_MORE_THAN_ONCE_PER_CALL (int): Attempt to operate on the same client more than once in the same call. + MANAGER_HAS_MAX_NUMBER_OF_LINKED_ACCOUNTS (int): Manager account has the maximum number of linked accounts. + CANNOT_UNLINK_ACCOUNT_WITHOUT_ACTIVE_USER (int): If no active user on account it cannot be unlinked from its manager. + CANNOT_REMOVE_LAST_CLIENT_ACCOUNT_OWNER (int): Account should have at least one active owner on it before being + unlinked. + CANNOT_CHANGE_ROLE_BY_NON_ACCOUNT_OWNER (int): Only account owners may change their permission role. + CANNOT_CHANGE_ROLE_FOR_NON_ACTIVE_LINK_ACCOUNT (int): When a client's link to its manager is not active, the link role cannot + be changed. + DUPLICATE_CHILD_FOUND (int): Attempt to link a child to a parent that contains or will contain + duplicate children. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + NO_PENDING_INVITE = 2 + SAME_CLIENT_MORE_THAN_ONCE_PER_CALL = 3 + MANAGER_HAS_MAX_NUMBER_OF_LINKED_ACCOUNTS = 4 + CANNOT_UNLINK_ACCOUNT_WITHOUT_ACTIVE_USER = 5 + CANNOT_REMOVE_LAST_CLIENT_ACCOUNT_OWNER = 6 + CANNOT_CHANGE_ROLE_BY_NON_ACCOUNT_OWNER = 7 + CANNOT_CHANGE_ROLE_FOR_NON_ACTIVE_LINK_ACCOUNT = 8 + DUPLICATE_CHILD_FOUND = 9 + + +class CustomerMatchUploadKeyTypeEnum(object): + class CustomerMatchUploadKeyType(enum.IntEnum): + """ + Enum describing possible customer match upload key types. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + CONTACT_INFO (int): Members are matched from customer info such as email address, phone + number or physical address. + CRM_ID (int): Members are matched from a user id generated and assigned by the + advertiser. + MOBILE_ADVERTISING_ID (int): Members are matched from mobile advertising ids. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + CONTACT_INFO = 2 + CRM_ID = 3 + MOBILE_ADVERTISING_ID = 4 + + +class DataDrivenModelStatusEnum(object): + class DataDrivenModelStatus(enum.IntEnum): + """ + Enumerates data driven model statuses. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + AVAILABLE (int): The data driven model is available. + STALE (int): The data driven model is stale. It hasn't been updated for at least 7 + days. It is still being used, but will become expired if it does not get + updated for 30 days. + EXPIRED (int): The data driven model expired. It hasn't been updated for at least 30 + days and cannot be used. Most commonly this is because there hasn't been + the required number of events in a recent 30-day period. + NEVER_GENERATED (int): The data driven model has never been generated. Most commonly this is + because there has never been the required number of events in any 30-day + period. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + AVAILABLE = 2 + STALE = 3 + EXPIRED = 4 + NEVER_GENERATED = 5 + + +class DatabaseErrorEnum(object): + class DatabaseError(enum.IntEnum): + """ + Enum describing possible database errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + 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. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + CONCURRENT_MODIFICATION = 2 + + +class DateErrorEnum(object): + class DateError(enum.IntEnum): + """ + Enum describing possible date errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + INVALID_FIELD_VALUES_IN_DATE (int): Given field values do not correspond to a valid date. + INVALID_FIELD_VALUES_IN_DATE_TIME (int): Given field values do not correspond to a valid date time. + INVALID_STRING_DATE (int): The string date's format should be yyyy-mm-dd. + INVALID_STRING_DATE_TIME_MICROS (int): The string date time's format should be yyyy-mm-dd hh:mm:ss.ssssss. + INVALID_STRING_DATE_TIME_SECONDS (int): The string date time's format should be yyyy-mm-dd hh:mm:ss. + INVALID_STRING_DATE_TIME_SECONDS_WITH_OFFSET (int): The string date time's format should be yyyy-mm-dd hh:mm:ss+|-hh:mm. + EARLIER_THAN_MINIMUM_DATE (int): Date is before allowed minimum. + LATER_THAN_MAXIMUM_DATE (int): Date is after allowed maximum. + DATE_RANGE_MINIMUM_DATE_LATER_THAN_MAXIMUM_DATE (int): Date range bounds are not in order. + DATE_RANGE_MINIMUM_AND_MAXIMUM_DATES_BOTH_NULL (int): Both dates in range are null. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + INVALID_FIELD_VALUES_IN_DATE = 2 + INVALID_FIELD_VALUES_IN_DATE_TIME = 3 + INVALID_STRING_DATE = 4 + INVALID_STRING_DATE_TIME_MICROS = 6 + INVALID_STRING_DATE_TIME_SECONDS = 11 + INVALID_STRING_DATE_TIME_SECONDS_WITH_OFFSET = 12 + EARLIER_THAN_MINIMUM_DATE = 7 + LATER_THAN_MAXIMUM_DATE = 8 + DATE_RANGE_MINIMUM_DATE_LATER_THAN_MAXIMUM_DATE = 9 + DATE_RANGE_MINIMUM_AND_MAXIMUM_DATES_BOTH_NULL = 10 + + +class DateRangeErrorEnum(object): + class DateRangeError(enum.IntEnum): + """ + Enum describing possible date range errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + INVALID_DATE (int): Invalid date. + START_DATE_AFTER_END_DATE (int): The start date was after the end date. + CANNOT_SET_DATE_TO_PAST (int): Cannot set date to past time + AFTER_MAXIMUM_ALLOWABLE_DATE (int): A date was used that is past the system "last" date. + CANNOT_MODIFY_START_DATE_IF_ALREADY_STARTED (int): Trying to change start date on a campaign that has started. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + INVALID_DATE = 2 + START_DATE_AFTER_END_DATE = 3 + CANNOT_SET_DATE_TO_PAST = 4 + AFTER_MAXIMUM_ALLOWABLE_DATE = 5 + CANNOT_MODIFY_START_DATE_IF_ALREADY_STARTED = 6 + + +class DayOfWeekEnum(object): + class DayOfWeek(enum.IntEnum): + """ + Enumerates days of the week, e.g., "Monday". + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): The value is unknown in this version. + MONDAY (int): Monday. + TUESDAY (int): Tuesday. + WEDNESDAY (int): Wednesday. + THURSDAY (int): Thursday. + FRIDAY (int): Friday. + SATURDAY (int): Saturday. + SUNDAY (int): Sunday. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + MONDAY = 2 + TUESDAY = 3 + WEDNESDAY = 4 + THURSDAY = 5 + FRIDAY = 6 + SATURDAY = 7 + SUNDAY = 8 + + +class DeviceEnum(object): + class Device(enum.IntEnum): + """ + Enumerates Google Ads devices available for targeting. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): The value is unknown in this version. + MOBILE (int): Mobile devices with full browsers. + TABLET (int): Tablets with full browsers. + DESKTOP (int): Computers. + OTHER (int): Other device types. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + MOBILE = 2 + TABLET = 3 + DESKTOP = 4 + OTHER = 5 + + +class DisplayAdFormatSettingEnum(object): + class DisplayAdFormatSetting(enum.IntEnum): + """ + Enumerates display ad format settings. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): The value is unknown in this version. + ALL_FORMATS (int): Text, image and native formats. + NON_NATIVE (int): Text and image formats. + NATIVE (int): Native format, i.e. the format rendering is controlled by the publisher + and not by Google. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + ALL_FORMATS = 2 + NON_NATIVE = 3 + NATIVE = 4 + + +class DistinctErrorEnum(object): + class DistinctError(enum.IntEnum): + """ + Enum describing possible distinct errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + DUPLICATE_ELEMENT (int): Duplicate element. + DUPLICATE_TYPE (int): Duplicate type. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + DUPLICATE_ELEMENT = 2 + DUPLICATE_TYPE = 3 + + +class DsaPageFeedCriterionFieldEnum(object): + class DsaPageFeedCriterionField(enum.IntEnum): + """ + Possible values for Dynamic Search Ad Page Feed criterion fields. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + PAGE_URL (int): Data Type: URL or URL\_LIST. URL of the web page you want to target. + LABEL (int): Data Type: STRING\_LIST. The labels that will help you target ads within + your page feed. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + PAGE_URL = 2 + LABEL = 3 + + +class EducationPlaceholderFieldEnum(object): + class EducationPlaceholderField(enum.IntEnum): + """ + Possible values for Education placeholder fields. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + PROGRAM_ID (int): Data Type: STRING. Required. Combination of PROGRAM ID and LOCATION ID + must be unique per offer. + LOCATION_ID (int): Data Type: STRING. Combination of PROGRAM ID and LOCATION ID must be + unique per offer. + PROGRAM_NAME (int): Data Type: STRING. Required. Main headline with program name to be shown + in dynamic ad. + AREA_OF_STUDY (int): Data Type: STRING. Area of study that can be shown in dynamic ad. + PROGRAM_DESCRIPTION (int): Data Type: STRING. Description of program that can be shown in dynamic + ad. + SCHOOL_NAME (int): Data Type: STRING. Name of school that can be shown in dynamic ad. + ADDRESS (int): Data Type: STRING. Complete school address, including postal code. + THUMBNAIL_IMAGE_URL (int): Data Type: URL. Image to be displayed in ads. + ALTERNATIVE_THUMBNAIL_IMAGE_URL (int): Data Type: URL. Alternative hosted file of image to be used in the ad. + FINAL_URLS (int): Data Type: URL\_LIST. Required. Final URLs to be used in ad when using + Upgraded URLs; the more specific the better (e.g. the individual URL of + a specific program and its location). + FINAL_MOBILE_URLS (int): Data Type: URL\_LIST. Final mobile URLs for the ad when using Upgraded + URLs. + TRACKING_URL (int): Data Type: URL. Tracking template for the ad when using Upgraded URLs. + CONTEXTUAL_KEYWORDS (int): Data Type: STRING\_LIST. Keywords used for product retrieval. + ANDROID_APP_LINK (int): Data Type: STRING. Android app link. Must be formatted as: + android-app://{package\_id}/{scheme}/{host\_path}. The components are + defined as follows: package\_id: app ID as specified in Google Play. + scheme: the scheme to pass to the application. Can be HTTP, or a custom + scheme. host\_path: identifies the specific content within your + application. + SIMILAR_PROGRAM_IDS (int): Data Type: STRING\_LIST. List of recommended program IDs to show + together with this item. + IOS_APP_LINK (int): Data Type: STRING. iOS app link. + IOS_APP_STORE_ID (int): Data Type: INT64. iOS app store ID. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + PROGRAM_ID = 2 + LOCATION_ID = 3 + PROGRAM_NAME = 4 + AREA_OF_STUDY = 5 + PROGRAM_DESCRIPTION = 6 + SCHOOL_NAME = 7 + ADDRESS = 8 + THUMBNAIL_IMAGE_URL = 9 + ALTERNATIVE_THUMBNAIL_IMAGE_URL = 10 + FINAL_URLS = 11 + FINAL_MOBILE_URLS = 12 + TRACKING_URL = 13 + CONTEXTUAL_KEYWORDS = 14 + ANDROID_APP_LINK = 15 + SIMILAR_PROGRAM_IDS = 16 + IOS_APP_LINK = 17 + IOS_APP_STORE_ID = 18 + + +class EnumErrorEnum(object): + class EnumError(enum.IntEnum): + """ + Enum describing possible enum errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + ENUM_VALUE_NOT_PERMITTED (int): The enum value is not permitted. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + ENUM_VALUE_NOT_PERMITTED = 3 + + +class ExtensionFeedItemErrorEnum(object): + class ExtensionFeedItemError(enum.IntEnum): + """ + Enum describing possible extension feed item errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + VALUE_OUT_OF_RANGE (int): Value is not within the accepted range. + URL_LIST_TOO_LONG (int): Url list is too long. + CANNOT_HAVE_RESTRICTION_ON_EMPTY_GEO_TARGETING (int): Cannot have a geo targeting restriction without having geo targeting. + CANNOT_SET_WITH_FINAL_URLS (int): Cannot simultaneously set sitelink field with final urls. + CANNOT_SET_WITHOUT_FINAL_URLS (int): Must set field with final urls. + INVALID_PHONE_NUMBER (int): Phone number for a call extension is invalid. + PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY (int): Phone number for a call extension is not supported for the given country + code. + CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED (int): A carrier specific number in short format is not allowed for call + extensions. + PREMIUM_RATE_NUMBER_NOT_ALLOWED (int): Premium rate numbers are not allowed for call extensions. + DISALLOWED_NUMBER_TYPE (int): Phone number type for a call extension is not allowed. + For example, personal number is not allowed for a call extension in + most regions. + INVALID_DOMESTIC_PHONE_NUMBER_FORMAT (int): Phone number for a call extension does not meet domestic format + requirements. + VANITY_PHONE_NUMBER_NOT_ALLOWED (int): Vanity phone numbers (i.e. those including letters) are not allowed for + call extensions. + INVALID_CALL_CONVERSION_ACTION (int): Call conversion action provided for a call extension is invalid. + CUSTOMER_NOT_WHITELISTED_FOR_CALLTRACKING (int): For a call extension, the customer is not whitelisted for call tracking. + CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY (int): Call tracking is not supported for the given country for a call + extension. + CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED (int): Customer hasn't consented for call recording, which is required for + creating/updating call feed items. + INVALID_APP_ID (int): App id provided for an app extension is invalid. + QUOTES_IN_REVIEW_EXTENSION_SNIPPET (int): Quotation marks present in the review text for a review extension. + HYPHENS_IN_REVIEW_EXTENSION_SNIPPET (int): Hyphen character present in the review text for a review extension. + REVIEW_EXTENSION_SOURCE_INELIGIBLE (int): A blacklisted review source name or url was provided for a review + extension. + SOURCE_NAME_IN_REVIEW_EXTENSION_TEXT (int): Review source name should not be found in the review text. + INCONSISTENT_CURRENCY_CODES (int): Inconsistent currency codes. + PRICE_EXTENSION_HAS_DUPLICATED_HEADERS (int): Price extension cannot have duplicated headers. + PRICE_ITEM_HAS_DUPLICATED_HEADER_AND_DESCRIPTION (int): Price item cannot have duplicated header and description. + PRICE_EXTENSION_HAS_TOO_FEW_ITEMS (int): Price extension has too few items. + PRICE_EXTENSION_HAS_TOO_MANY_ITEMS (int): Price extension has too many items. + UNSUPPORTED_VALUE (int): The input value is not currently supported. + UNSUPPORTED_VALUE_IN_SELECTED_LANGUAGE (int): The input value is not currently supported in the selected language of an + extension. + INVALID_DEVICE_PREFERENCE (int): Unknown or unsupported device preference. + INVALID_SCHEDULE_END (int): Invalid feed item schedule end time (i.e., endHour = 24 and endMinute != + 0). + DATE_TIME_MUST_BE_IN_ACCOUNT_TIME_ZONE (int): Date time zone does not match the account's time zone. + INVALID_SNIPPETS_HEADER (int): Invalid structured snippet header. + CANNOT_OPERATE_ON_REMOVED_FEED_ITEM (int): Cannot operate on removed feed item. + PHONE_NUMBER_NOT_SUPPORTED_WITH_CALLTRACKING_FOR_COUNTRY (int): Phone number not supported when call tracking enabled for country. + CONFLICTING_CALL_CONVERSION_SETTINGS (int): Cannot set call\_conversion\_action while + call\_conversion\_tracking\_enabled is set to true. + EXTENSION_TYPE_MISMATCH (int): The type of the input extension feed item doesn't match the existing + extension feed item. + EXTENSION_SUBTYPE_REQUIRED (int): The oneof field extension i.e. subtype of extension feed item is + required. + EXTENSION_TYPE_UNSUPPORTED (int): The referenced feed item is not mapped to a supported extension type. + CANNOT_OPERATE_ON_FEED_WITH_MULTIPLE_MAPPINGS (int): Cannot operate on a Feed with more than one active FeedMapping. + CANNOT_OPERATE_ON_FEED_WITH_KEY_ATTRIBUTES (int): Cannot operate on a Feed that has key attributes. + 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. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + VALUE_OUT_OF_RANGE = 2 + URL_LIST_TOO_LONG = 3 + CANNOT_HAVE_RESTRICTION_ON_EMPTY_GEO_TARGETING = 4 + CANNOT_SET_WITH_FINAL_URLS = 5 + CANNOT_SET_WITHOUT_FINAL_URLS = 6 + INVALID_PHONE_NUMBER = 7 + PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY = 8 + CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED = 9 + PREMIUM_RATE_NUMBER_NOT_ALLOWED = 10 + DISALLOWED_NUMBER_TYPE = 11 + INVALID_DOMESTIC_PHONE_NUMBER_FORMAT = 12 + VANITY_PHONE_NUMBER_NOT_ALLOWED = 13 + INVALID_CALL_CONVERSION_ACTION = 14 + CUSTOMER_NOT_WHITELISTED_FOR_CALLTRACKING = 15 + CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY = 16 + CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED = 17 + INVALID_APP_ID = 18 + QUOTES_IN_REVIEW_EXTENSION_SNIPPET = 19 + HYPHENS_IN_REVIEW_EXTENSION_SNIPPET = 20 + REVIEW_EXTENSION_SOURCE_INELIGIBLE = 21 + SOURCE_NAME_IN_REVIEW_EXTENSION_TEXT = 22 + INCONSISTENT_CURRENCY_CODES = 23 + PRICE_EXTENSION_HAS_DUPLICATED_HEADERS = 24 + PRICE_ITEM_HAS_DUPLICATED_HEADER_AND_DESCRIPTION = 25 + PRICE_EXTENSION_HAS_TOO_FEW_ITEMS = 26 + PRICE_EXTENSION_HAS_TOO_MANY_ITEMS = 27 + UNSUPPORTED_VALUE = 28 + UNSUPPORTED_VALUE_IN_SELECTED_LANGUAGE = 29 + INVALID_DEVICE_PREFERENCE = 30 + INVALID_SCHEDULE_END = 31 + DATE_TIME_MUST_BE_IN_ACCOUNT_TIME_ZONE = 32 + INVALID_SNIPPETS_HEADER = 33 + CANNOT_OPERATE_ON_REMOVED_FEED_ITEM = 34 + PHONE_NUMBER_NOT_SUPPORTED_WITH_CALLTRACKING_FOR_COUNTRY = 35 + CONFLICTING_CALL_CONVERSION_SETTINGS = 36 + EXTENSION_TYPE_MISMATCH = 37 + EXTENSION_SUBTYPE_REQUIRED = 38 + EXTENSION_TYPE_UNSUPPORTED = 39 + CANNOT_OPERATE_ON_FEED_WITH_MULTIPLE_MAPPINGS = 40 + CANNOT_OPERATE_ON_FEED_WITH_KEY_ATTRIBUTES = 41 + INVALID_PRICE_FORMAT = 42 + PROMOTION_INVALID_TIME = 43 + TOO_MANY_DECIMAL_PLACES_SPECIFIED = 44 + + +class ExtensionSettingDeviceEnum(object): + class ExtensionSettingDevice(enum.IntEnum): + """ + Possbile device types for an extension setting. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): The value is unknown in this version. + MOBILE (int): Mobile. The extensions in the extension setting will only serve on + mobile devices. + DESKTOP (int): Desktop. The extensions in the extension setting will only serve on + desktop devices. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + MOBILE = 2 + DESKTOP = 3 + + +class ExtensionSettingErrorEnum(object): + class ExtensionSettingError(enum.IntEnum): + """ + Enum describing possible extension setting errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + EXTENSIONS_REQUIRED (int): A platform restriction was provided without input extensions or existing + extensions. + FEED_TYPE_EXTENSION_TYPE_MISMATCH (int): The provided feed type does not correspond to the provided extensions. + INVALID_FEED_TYPE (int): The provided feed type cannot be used. + INVALID_FEED_TYPE_FOR_CUSTOMER_EXTENSION_SETTING (int): The provided feed type cannot be used at the customer level. + CANNOT_CHANGE_FEED_ITEM_ON_CREATE (int): Cannot change a feed item field on a CREATE operation. + CANNOT_UPDATE_NEWLY_CREATED_EXTENSION (int): Cannot update an extension that is not already in this setting. + NO_EXISTING_AD_GROUP_EXTENSION_SETTING_FOR_TYPE (int): There is no existing AdGroupExtensionSetting for this type. + NO_EXISTING_CAMPAIGN_EXTENSION_SETTING_FOR_TYPE (int): There is no existing CampaignExtensionSetting for this type. + NO_EXISTING_CUSTOMER_EXTENSION_SETTING_FOR_TYPE (int): There is no existing CustomerExtensionSetting for this type. + AD_GROUP_EXTENSION_SETTING_ALREADY_EXISTS (int): The AdGroupExtensionSetting already exists. UPDATE should be used to + modify the existing AdGroupExtensionSetting. + CAMPAIGN_EXTENSION_SETTING_ALREADY_EXISTS (int): The CampaignExtensionSetting already exists. UPDATE should be used to + modify the existing CampaignExtensionSetting. + CUSTOMER_EXTENSION_SETTING_ALREADY_EXISTS (int): The CustomerExtensionSetting already exists. UPDATE should be used to + modify the existing CustomerExtensionSetting. + AD_GROUP_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE (int): An active ad group feed already exists for this place holder type. + CAMPAIGN_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE (int): An active campaign feed already exists for this place holder type. + CUSTOMER_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE (int): An active customer feed already exists for this place holder type. + VALUE_OUT_OF_RANGE (int): Value is not within the accepted range. + CANNOT_SET_FIELD_WITH_FINAL_URLS (int): Cannot simultaneously set specified field with final urls. + FINAL_URLS_NOT_SET (int): Must set field with final urls. + INVALID_PHONE_NUMBER (int): Phone number for a call extension is invalid. + PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY (int): Phone number for a call extension is not supported for the given country + code. + CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED (int): A carrier specific number in short format is not allowed for call + extensions. + PREMIUM_RATE_NUMBER_NOT_ALLOWED (int): Premium rate numbers are not allowed for call extensions. + DISALLOWED_NUMBER_TYPE (int): Phone number type for a call extension is not allowed. + INVALID_DOMESTIC_PHONE_NUMBER_FORMAT (int): Phone number for a call extension does not meet domestic format + requirements. + VANITY_PHONE_NUMBER_NOT_ALLOWED (int): Vanity phone numbers (i.e. those including letters) are not allowed for + call extensions. + INVALID_COUNTRY_CODE (int): Country code provided for a call extension is invalid. + INVALID_CALL_CONVERSION_TYPE_ID (int): Call conversion type id provided for a call extension is invalid. + CUSTOMER_NOT_WHITELISTED_FOR_CALLTRACKING (int): For a call extension, the customer is not whitelisted for call tracking. + CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY (int): Call tracking is not supported for the given country for a call + extension. + INVALID_APP_ID (int): App id provided for an app extension is invalid. + QUOTES_IN_REVIEW_EXTENSION_SNIPPET (int): Quotation marks present in the review text for a review extension. + HYPHENS_IN_REVIEW_EXTENSION_SNIPPET (int): Hyphen character present in the review text for a review extension. + REVIEW_EXTENSION_SOURCE_NOT_ELIGIBLE (int): A blacklisted review source name or url was provided for a review + extension. + SOURCE_NAME_IN_REVIEW_EXTENSION_TEXT (int): Review source name should not be found in the review text. + MISSING_FIELD (int): Field must be set. + INCONSISTENT_CURRENCY_CODES (int): Inconsistent currency codes. + PRICE_EXTENSION_HAS_DUPLICATED_HEADERS (int): Price extension cannot have duplicated headers. + PRICE_ITEM_HAS_DUPLICATED_HEADER_AND_DESCRIPTION (int): Price item cannot have duplicated header and description. + PRICE_EXTENSION_HAS_TOO_FEW_ITEMS (int): Price extension has too few items + PRICE_EXTENSION_HAS_TOO_MANY_ITEMS (int): Price extension has too many items + UNSUPPORTED_VALUE (int): The input value is not currently supported. + INVALID_DEVICE_PREFERENCE (int): Unknown or unsupported device preference. + INVALID_SCHEDULE_END (int): Invalid feed item schedule end time (i.e., endHour = 24 and + endMinute != 0). + DATE_TIME_MUST_BE_IN_ACCOUNT_TIME_ZONE (int): Date time zone does not match the account's time zone. + OVERLAPPING_SCHEDULES_NOT_ALLOWED (int): Overlapping feed item schedule times (e.g., 7-10AM and 8-11AM) are not + allowed. + SCHEDULE_END_NOT_AFTER_START (int): Feed item schedule end time must be after start time. + TOO_MANY_SCHEDULES_PER_DAY (int): There are too many feed item schedules per day. + DUPLICATE_EXTENSION_FEED_ITEM_EDIT (int): Cannot edit the same extension feed item more than once in the same + request. + INVALID_SNIPPETS_HEADER (int): Invalid structured snippet header. + PHONE_NUMBER_NOT_SUPPORTED_WITH_CALLTRACKING_FOR_COUNTRY (int): Phone number with call tracking enabled is not supported for the + specified country. + CAMPAIGN_TARGETING_MISMATCH (int): The targeted adgroup must belong to the targeted campaign. + CANNOT_OPERATE_ON_REMOVED_FEED (int): The feed used by the ExtensionSetting is removed and cannot be operated + on. Remove the ExtensionSetting to allow a new one to be created using + an active feed. + EXTENSION_TYPE_REQUIRED (int): The ExtensionFeedItem type is required for this operation. + INCOMPATIBLE_UNDERLYING_MATCHING_FUNCTION (int): The matching function that links the extension feed to the customer, + campaign, or ad group is not compatible with the ExtensionSetting + services. + START_DATE_AFTER_END_DATE (int): Start date must be before end date. + INVALID_PRICE_FORMAT (int): Input price is not in a valid format. + PROMOTION_INVALID_TIME (int): The promotion time is invalid. + PROMOTION_CANNOT_SET_PERCENT_DISCOUNT_AND_MONEY_DISCOUNT (int): Cannot set both percent discount and money discount fields. + PROMOTION_CANNOT_SET_PROMOTION_CODE_AND_ORDERS_OVER_AMOUNT (int): Cannot set both promotion code and orders over amount fields. + TOO_MANY_DECIMAL_PLACES_SPECIFIED (int): This field has too many decimal places specified. + INVALID_LANGUAGE_CODE (int): The language code is not valid. + UNSUPPORTED_LANGUAGE (int): The language is not supported. + CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED (int): Customer hasn't consented for call recording, which is required for + adding/updating call extensions. + EXTENSION_SETTING_UPDATE_IS_A_NOOP (int): The UPDATE operation does not specify any fields other than the resource + name in the update mask. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + EXTENSIONS_REQUIRED = 2 + FEED_TYPE_EXTENSION_TYPE_MISMATCH = 3 + INVALID_FEED_TYPE = 4 + INVALID_FEED_TYPE_FOR_CUSTOMER_EXTENSION_SETTING = 5 + CANNOT_CHANGE_FEED_ITEM_ON_CREATE = 6 + CANNOT_UPDATE_NEWLY_CREATED_EXTENSION = 7 + NO_EXISTING_AD_GROUP_EXTENSION_SETTING_FOR_TYPE = 8 + NO_EXISTING_CAMPAIGN_EXTENSION_SETTING_FOR_TYPE = 9 + NO_EXISTING_CUSTOMER_EXTENSION_SETTING_FOR_TYPE = 10 + AD_GROUP_EXTENSION_SETTING_ALREADY_EXISTS = 11 + CAMPAIGN_EXTENSION_SETTING_ALREADY_EXISTS = 12 + CUSTOMER_EXTENSION_SETTING_ALREADY_EXISTS = 13 + AD_GROUP_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE = 14 + CAMPAIGN_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE = 15 + CUSTOMER_FEED_ALREADY_EXISTS_FOR_PLACEHOLDER_TYPE = 16 + VALUE_OUT_OF_RANGE = 17 + CANNOT_SET_FIELD_WITH_FINAL_URLS = 18 + FINAL_URLS_NOT_SET = 19 + INVALID_PHONE_NUMBER = 20 + PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY = 21 + CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED = 22 + PREMIUM_RATE_NUMBER_NOT_ALLOWED = 23 + DISALLOWED_NUMBER_TYPE = 24 + INVALID_DOMESTIC_PHONE_NUMBER_FORMAT = 25 + VANITY_PHONE_NUMBER_NOT_ALLOWED = 26 + INVALID_COUNTRY_CODE = 27 + INVALID_CALL_CONVERSION_TYPE_ID = 28 + CUSTOMER_NOT_WHITELISTED_FOR_CALLTRACKING = 29 + CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY = 30 + INVALID_APP_ID = 31 + QUOTES_IN_REVIEW_EXTENSION_SNIPPET = 32 + HYPHENS_IN_REVIEW_EXTENSION_SNIPPET = 33 + REVIEW_EXTENSION_SOURCE_NOT_ELIGIBLE = 34 + SOURCE_NAME_IN_REVIEW_EXTENSION_TEXT = 35 + MISSING_FIELD = 36 + INCONSISTENT_CURRENCY_CODES = 37 + PRICE_EXTENSION_HAS_DUPLICATED_HEADERS = 38 + PRICE_ITEM_HAS_DUPLICATED_HEADER_AND_DESCRIPTION = 39 + PRICE_EXTENSION_HAS_TOO_FEW_ITEMS = 40 + PRICE_EXTENSION_HAS_TOO_MANY_ITEMS = 41 + UNSUPPORTED_VALUE = 42 + INVALID_DEVICE_PREFERENCE = 43 + INVALID_SCHEDULE_END = 45 + DATE_TIME_MUST_BE_IN_ACCOUNT_TIME_ZONE = 47 + OVERLAPPING_SCHEDULES_NOT_ALLOWED = 48 + SCHEDULE_END_NOT_AFTER_START = 49 + TOO_MANY_SCHEDULES_PER_DAY = 50 + DUPLICATE_EXTENSION_FEED_ITEM_EDIT = 51 + INVALID_SNIPPETS_HEADER = 52 + PHONE_NUMBER_NOT_SUPPORTED_WITH_CALLTRACKING_FOR_COUNTRY = 53 + CAMPAIGN_TARGETING_MISMATCH = 54 + CANNOT_OPERATE_ON_REMOVED_FEED = 55 + EXTENSION_TYPE_REQUIRED = 56 + INCOMPATIBLE_UNDERLYING_MATCHING_FUNCTION = 57 + START_DATE_AFTER_END_DATE = 58 + INVALID_PRICE_FORMAT = 59 + PROMOTION_INVALID_TIME = 60 + PROMOTION_CANNOT_SET_PERCENT_DISCOUNT_AND_MONEY_DISCOUNT = 61 + PROMOTION_CANNOT_SET_PROMOTION_CODE_AND_ORDERS_OVER_AMOUNT = 62 + TOO_MANY_DECIMAL_PLACES_SPECIFIED = 63 + INVALID_LANGUAGE_CODE = 64 + UNSUPPORTED_LANGUAGE = 65 + CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED = 66 + EXTENSION_SETTING_UPDATE_IS_A_NOOP = 67 + + +class ExtensionTypeEnum(object): + class ExtensionType(enum.IntEnum): + """ + Possible data types for an extension in an extension setting. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + NONE (int): None. + APP (int): App. + CALL (int): Call. + CALLOUT (int): Callout. + MESSAGE (int): Message. + PRICE (int): Price. + PROMOTION (int): Promotion. + REVIEW (int): Review. + SITELINK (int): Sitelink. + STRUCTURED_SNIPPET (int): Structured snippet. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + NONE = 2 + APP = 3 + CALL = 4 + CALLOUT = 5 + MESSAGE = 6 + PRICE = 7 + PROMOTION = 8 + REVIEW = 9 + SITELINK = 10 + STRUCTURED_SNIPPET = 11 + + +class ExternalConversionSourceEnum(object): + class ExternalConversionSource(enum.IntEnum): + """ + The external conversion source that is associated with a ConversionAction. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Represents value unknown in this version. + WEBPAGE (int): Conversion that occurs when a user navigates to a particular webpage + after viewing an ad; Displayed in Google Ads UI as 'Website'. + ANALYTICS (int): Conversion that comes from linked Google Analytics goal or transaction; + Displayed in Google Ads UI as 'Analytics'. + UPLOAD (int): Website conversion that is uploaded through ConversionUploadService; + Displayed in Google Ads UI as 'Import from clicks'. + AD_CALL_METRICS (int): Conversion that occurs when a user clicks on a call extension directly on + an ad; Displayed in Google Ads UI as 'Calls from ads'. + WEBSITE_CALL_METRICS (int): Conversion that occurs when a user calls a dynamically-generated phone + number (by installed javascript) from an advertiser's website after + clicking on an ad; Displayed in Google Ads UI as 'Calls from website'. + STORE_VISITS (int): Conversion that occurs when a user visits an advertiser's retail store + after clicking on a Google ad; + Displayed in Google Ads UI as 'Store visits'. + ANDROID_IN_APP (int): Conversion that occurs when a user takes an in-app action such as a + purchase in an Android app; + Displayed in Google Ads UI as 'Android in-app action'. + IOS_IN_APP (int): Conversion that occurs when a user takes an in-app action such as a + purchase in an iOS app; + Displayed in Google Ads UI as 'iOS in-app action'. + IOS_FIRST_OPEN (int): Conversion that occurs when a user opens an iOS app for the first time; + Displayed in Google Ads UI as 'iOS app install (first open)'. + APP_UNSPECIFIED (int): Legacy app conversions that do not have an AppPlatform provided; + Displayed in Google Ads UI as 'Mobile app'. + ANDROID_FIRST_OPEN (int): Conversion that occurs when a user opens an Android app for the first + time; Displayed in Google Ads UI as 'Android app install (first open)'. + UPLOAD_CALLS (int): Call conversion that is uploaded through ConversionUploadService; + Displayed in Google Ads UI as 'Import from calls'. + FIREBASE (int): Conversion that comes from a linked Firebase event; + Displayed in Google Ads UI as 'Firebase'. + CLICK_TO_CALL (int): Conversion that occurs when a user clicks on a mobile phone number; + Displayed in Google Ads UI as 'Phone number clicks'. + SALESFORCE (int): Conversion that comes from Salesforce; + Displayed in Google Ads UI as 'Salesforce.com'. + STORE_SALES_CRM (int): Conversion that comes from in-store purchases recorded by CRM; + Displayed in Google Ads UI as 'Store sales (data partner)'. + STORE_SALES_PAYMENT_NETWORK (int): Conversion that comes from in-store purchases from payment network; + Displayed in Google Ads UI as 'Store sales (payment network)'. + GOOGLE_PLAY (int): Codeless Google Play conversion; + Displayed in Google Ads UI as 'Google Play'. + 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)'. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + WEBPAGE = 2 + ANALYTICS = 3 + UPLOAD = 4 + AD_CALL_METRICS = 5 + WEBSITE_CALL_METRICS = 6 + STORE_VISITS = 7 + ANDROID_IN_APP = 8 + IOS_IN_APP = 9 + IOS_FIRST_OPEN = 10 + APP_UNSPECIFIED = 11 + ANDROID_FIRST_OPEN = 12 + UPLOAD_CALLS = 13 + FIREBASE = 14 + CLICK_TO_CALL = 15 + SALESFORCE = 16 + STORE_SALES_CRM = 17 + STORE_SALES_PAYMENT_NETWORK = 18 + GOOGLE_PLAY = 19 + THIRD_PARTY_APP_ANALYTICS = 20 + GOOGLE_ATTRIBUTION = 21 + STORE_SALES_DIRECT = 22 + + +class FeedAttributeOperation(object): + 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 attribute to the existing attributes. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + ADD = 2 + + +class FeedAttributeReferenceErrorEnum(object): + class FeedAttributeReferenceError(enum.IntEnum): + """ + Enum describing possible feed attribute reference errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + CANNOT_REFERENCE_REMOVED_FEED (int): A feed referenced by ID has been removed. + INVALID_FEED_NAME (int): There is no enabled feed with the given name. + INVALID_FEED_ATTRIBUTE_NAME (int): There is no feed attribute in an enabled feed with the given name. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + CANNOT_REFERENCE_REMOVED_FEED = 2 + INVALID_FEED_NAME = 3 + INVALID_FEED_ATTRIBUTE_NAME = 4 + + +class FeedAttributeTypeEnum(object): + class FeedAttributeType(enum.IntEnum): + """ + Possible data types for a feed attribute. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + INT64 (int): Int64. + DOUBLE (int): Double. + STRING (int): String. + BOOLEAN (int): Boolean. + URL (int): Url. + DATE_TIME (int): Datetime. + INT64_LIST (int): Int64 list. + DOUBLE_LIST (int): Double (8 bytes) list. + STRING_LIST (int): String list. + BOOLEAN_LIST (int): Boolean list. + URL_LIST (int): Url list. + DATE_TIME_LIST (int): Datetime list. + PRICE (int): Price. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + INT64 = 2 + DOUBLE = 3 + STRING = 4 + BOOLEAN = 5 + URL = 6 + DATE_TIME = 7 + INT64_LIST = 8 + DOUBLE_LIST = 9 + STRING_LIST = 10 + BOOLEAN_LIST = 11 + URL_LIST = 12 + DATE_TIME_LIST = 13 + PRICE = 14 + + +class FeedErrorEnum(object): + class FeedError(enum.IntEnum): + """ + Enum describing possible feed errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + ATTRIBUTE_NAMES_NOT_UNIQUE (int): The names of the FeedAttributes must be unique. + ATTRIBUTES_DO_NOT_MATCH_EXISTING_ATTRIBUTES (int): The attribute list must be an exact copy of the existing list if the + attribute ID's are present. + CANNOT_SPECIFY_USER_ORIGIN_FOR_SYSTEM_FEED (int): Cannot specify USER origin for a system generated feed. + CANNOT_SPECIFY_GOOGLE_ORIGIN_FOR_NON_SYSTEM_FEED (int): Cannot specify GOOGLE origin for a non-system generated feed. + CANNOT_SPECIFY_FEED_ATTRIBUTES_FOR_SYSTEM_FEED (int): Cannot specify feed attributes for system feed. + CANNOT_UPDATE_FEED_ATTRIBUTES_WITH_ORIGIN_GOOGLE (int): Cannot update FeedAttributes on feed with origin GOOGLE. + FEED_REMOVED (int): The given ID refers to a removed Feed. Removed Feeds are immutable. + INVALID_ORIGIN_VALUE (int): The origin of the feed is not valid for the client. + FEED_ORIGIN_IS_NOT_USER (int): A user can only create and modify feeds with USER origin. + INVALID_AUTH_TOKEN_FOR_EMAIL (int): Invalid auth token for the given email. + INVALID_EMAIL (int): Invalid email specified. + DUPLICATE_FEED_NAME (int): Feed name matches that of another active Feed. + INVALID_FEED_NAME (int): Name of feed is not allowed. + MISSING_OAUTH_INFO (int): Missing OAuthInfo. + NEW_ATTRIBUTE_CANNOT_BE_PART_OF_UNIQUE_KEY (int): New FeedAttributes must not affect the unique key. + TOO_MANY_ATTRIBUTES (int): Too many FeedAttributes for a Feed. + INVALID_BUSINESS_ACCOUNT (int): The business account is not valid. + 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. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + ATTRIBUTE_NAMES_NOT_UNIQUE = 2 + ATTRIBUTES_DO_NOT_MATCH_EXISTING_ATTRIBUTES = 3 + CANNOT_SPECIFY_USER_ORIGIN_FOR_SYSTEM_FEED = 4 + CANNOT_SPECIFY_GOOGLE_ORIGIN_FOR_NON_SYSTEM_FEED = 5 + CANNOT_SPECIFY_FEED_ATTRIBUTES_FOR_SYSTEM_FEED = 6 + CANNOT_UPDATE_FEED_ATTRIBUTES_WITH_ORIGIN_GOOGLE = 7 + FEED_REMOVED = 8 + INVALID_ORIGIN_VALUE = 9 + FEED_ORIGIN_IS_NOT_USER = 10 + INVALID_AUTH_TOKEN_FOR_EMAIL = 11 + INVALID_EMAIL = 12 + DUPLICATE_FEED_NAME = 13 + INVALID_FEED_NAME = 14 + MISSING_OAUTH_INFO = 15 + NEW_ATTRIBUTE_CANNOT_BE_PART_OF_UNIQUE_KEY = 16 + TOO_MANY_ATTRIBUTES = 17 + INVALID_BUSINESS_ACCOUNT = 18 + BUSINESS_ACCOUNT_CANNOT_ACCESS_LOCATION_ACCOUNT = 19 + INVALID_AFFILIATE_CHAIN_ID = 20 + + +class FeedItemErrorEnum(object): + class FeedItemError(enum.IntEnum): + """ + Enum describing possible feed item errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + CANNOT_CONVERT_ATTRIBUTE_VALUE_FROM_STRING (int): Cannot convert the feed attribute value from string to its real type. + CANNOT_OPERATE_ON_REMOVED_FEED_ITEM (int): Cannot operate on removed feed item. + DATE_TIME_MUST_BE_IN_ACCOUNT_TIME_ZONE (int): Date time zone does not match the account's time zone. + KEY_ATTRIBUTES_NOT_FOUND (int): Feed item with the key attributes could not be found. + INVALID_URL (int): Url feed attribute value is not valid. + MISSING_KEY_ATTRIBUTES (int): Some key attributes are missing. + KEY_ATTRIBUTES_NOT_UNIQUE (int): Feed item has same key attributes as another feed item. + CANNOT_MODIFY_KEY_ATTRIBUTE_VALUE (int): Cannot modify key attributes on an existing feed item. + SIZE_TOO_LARGE_FOR_MULTI_VALUE_ATTRIBUTE (int): The feed attribute value is too large. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + CANNOT_CONVERT_ATTRIBUTE_VALUE_FROM_STRING = 2 + CANNOT_OPERATE_ON_REMOVED_FEED_ITEM = 3 + DATE_TIME_MUST_BE_IN_ACCOUNT_TIME_ZONE = 4 + KEY_ATTRIBUTES_NOT_FOUND = 5 + INVALID_URL = 6 + MISSING_KEY_ATTRIBUTES = 7 + KEY_ATTRIBUTES_NOT_UNIQUE = 8 + CANNOT_MODIFY_KEY_ATTRIBUTE_VALUE = 9 + SIZE_TOO_LARGE_FOR_MULTI_VALUE_ATTRIBUTE = 10 + + +class FeedItemQualityApprovalStatusEnum(object): + class FeedItemQualityApprovalStatus(enum.IntEnum): + """ + The possible quality evaluation approval statuses of a feed item. + + Attributes: + UNSPECIFIED (int): No value has been specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + APPROVED (int): Meets all quality expectations. + DISAPPROVED (int): Does not meet some quality expectations. The specific reason is found in + the quality\_disapproval\_reasons field. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + APPROVED = 2 + DISAPPROVED = 3 + + +class FeedItemQualityDisapprovalReasonEnum(object): + class FeedItemQualityDisapprovalReason(enum.IntEnum): + """ + The possible quality evaluation disapproval reasons of a feed item. + + Attributes: + UNSPECIFIED (int): No value has been specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + PRICE_TABLE_REPETITIVE_HEADERS (int): Price contains repetitive headers. + PRICE_TABLE_REPETITIVE_DESCRIPTION (int): Price contains repetitive description. + PRICE_TABLE_INCONSISTENT_ROWS (int): Price contains inconsistent items. + PRICE_DESCRIPTION_HAS_PRICE_QUALIFIERS (int): Price contains qualifiers in description. + PRICE_UNSUPPORTED_LANGUAGE (int): Price contains an unsupported language. + PRICE_TABLE_ROW_HEADER_TABLE_TYPE_MISMATCH (int): Price item header is not relevant to the price type. + PRICE_TABLE_ROW_HEADER_HAS_PROMOTIONAL_TEXT (int): Price item header has promotional text. + PRICE_TABLE_ROW_DESCRIPTION_NOT_RELEVANT (int): Price item description is not relevant to the item header. + PRICE_TABLE_ROW_DESCRIPTION_HAS_PROMOTIONAL_TEXT (int): Price item description contains promotional text. + PRICE_TABLE_ROW_HEADER_DESCRIPTION_REPETITIVE (int): Price item header and description are repetitive. + PRICE_TABLE_ROW_UNRATEABLE (int): Price item is in a foreign language, nonsense, or can't be rated. + PRICE_TABLE_ROW_PRICE_INVALID (int): Price item price is invalid or inaccurate. + PRICE_TABLE_ROW_URL_INVALID (int): Price item URL is invalid or irrelevant. + PRICE_HEADER_OR_DESCRIPTION_HAS_PRICE (int): Price item header or description has price. + STRUCTURED_SNIPPETS_HEADER_POLICY_VIOLATED (int): Structured snippet values do not match the header. + STRUCTURED_SNIPPETS_REPEATED_VALUES (int): Structured snippet values are repeated. + STRUCTURED_SNIPPETS_EDITORIAL_GUIDELINES (int): Structured snippet values violate editorial guidelines like punctuation. + STRUCTURED_SNIPPETS_HAS_PROMOTIONAL_TEXT (int): Structured snippet contain promotional text. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + PRICE_TABLE_REPETITIVE_HEADERS = 2 + PRICE_TABLE_REPETITIVE_DESCRIPTION = 3 + PRICE_TABLE_INCONSISTENT_ROWS = 4 + PRICE_DESCRIPTION_HAS_PRICE_QUALIFIERS = 5 + PRICE_UNSUPPORTED_LANGUAGE = 6 + PRICE_TABLE_ROW_HEADER_TABLE_TYPE_MISMATCH = 7 + PRICE_TABLE_ROW_HEADER_HAS_PROMOTIONAL_TEXT = 8 + PRICE_TABLE_ROW_DESCRIPTION_NOT_RELEVANT = 9 + PRICE_TABLE_ROW_DESCRIPTION_HAS_PROMOTIONAL_TEXT = 10 + PRICE_TABLE_ROW_HEADER_DESCRIPTION_REPETITIVE = 11 + PRICE_TABLE_ROW_UNRATEABLE = 12 + PRICE_TABLE_ROW_PRICE_INVALID = 13 + PRICE_TABLE_ROW_URL_INVALID = 14 + PRICE_HEADER_OR_DESCRIPTION_HAS_PRICE = 15 + STRUCTURED_SNIPPETS_HEADER_POLICY_VIOLATED = 16 + STRUCTURED_SNIPPETS_REPEATED_VALUES = 17 + STRUCTURED_SNIPPETS_EDITORIAL_GUIDELINES = 18 + STRUCTURED_SNIPPETS_HAS_PROMOTIONAL_TEXT = 19 + + +class FeedItemStatusEnum(object): + class FeedItemStatus(enum.IntEnum): + """ + Possible statuses of a feed item. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + ENABLED (int): Feed item is enabled. + REMOVED (int): Feed item has been removed. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + ENABLED = 2 + REMOVED = 3 + + +class FeedItemTargetDeviceEnum(object): + class FeedItemTargetDevice(enum.IntEnum): + """ + Possible data types for a feed item target device. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + MOBILE (int): Mobile. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + MOBILE = 2 + + +class FeedItemTargetErrorEnum(object): + class FeedItemTargetError(enum.IntEnum): + """ + Enum describing possible feed item target errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + MUST_SET_TARGET_ONEOF_ON_CREATE (int): On CREATE, the FeedItemTarget must have a populated field in the oneof + target. + FEED_ITEM_TARGET_ALREADY_EXISTS (int): The specified feed item target already exists, so it cannot be added. + FEED_ITEM_SCHEDULES_CANNOT_OVERLAP (int): The schedules for a given feed item cannot overlap. + TARGET_LIMIT_EXCEEDED_FOR_GIVEN_TYPE (int): Too many targets of a given type were added for a single feed item. + 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. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + MUST_SET_TARGET_ONEOF_ON_CREATE = 2 + FEED_ITEM_TARGET_ALREADY_EXISTS = 3 + FEED_ITEM_SCHEDULES_CANNOT_OVERLAP = 4 + TARGET_LIMIT_EXCEEDED_FOR_GIVEN_TYPE = 5 + TOO_MANY_SCHEDULES_PER_DAY = 6 + CANNOT_HAVE_ENABLED_CAMPAIGN_AND_ENABLED_AD_GROUP_TARGETS = 7 + + +class FeedItemTargetTypeEnum(object): + class FeedItemTargetType(enum.IntEnum): + """ + Possible type of a feed item target. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + CAMPAIGN (int): Feed item targets a campaign. + AD_GROUP (int): Feed item targets an ad group. + CRITERION (int): Feed item targets a criterion. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + CAMPAIGN = 2 + AD_GROUP = 3 + CRITERION = 4 + + +class FeedItemValidationErrorEnum(object): + class FeedItemValidationError(enum.IntEnum): + """ + The possible validation errors of a feed item. + + Attributes: + UNSPECIFIED (int): No value has been specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + STRING_TOO_SHORT (int): String is too short. + STRING_TOO_LONG (int): String is too long. + VALUE_NOT_SPECIFIED (int): Value is not provided. + INVALID_DOMESTIC_PHONE_NUMBER_FORMAT (int): Phone number format is invalid for region. + INVALID_PHONE_NUMBER (int): String does not represent a phone number. + PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY (int): Phone number format is not compatible with country code. + PREMIUM_RATE_NUMBER_NOT_ALLOWED (int): Premium rate number is not allowed. + DISALLOWED_NUMBER_TYPE (int): Phone number type is not allowed. + VALUE_OUT_OF_RANGE (int): Specified value is outside of the valid range. + CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY (int): Call tracking is not supported in the selected country. + CUSTOMER_NOT_WHITELISTED_FOR_CALLTRACKING (int): Customer is not whitelisted for call tracking. + INVALID_COUNTRY_CODE (int): Country code is invalid. + INVALID_APP_ID (int): The specified mobile app id is invalid. + MISSING_ATTRIBUTES_FOR_FIELDS (int): Some required field attributes are missing. + INVALID_TYPE_ID (int): Invalid email button type for email extension. + INVALID_EMAIL_ADDRESS (int): Email address is invalid. + INVALID_HTTPS_URL (int): The HTTPS URL in email extension is invalid. + MISSING_DELIVERY_ADDRESS (int): Delivery address is missing from email extension. + START_DATE_AFTER_END_DATE (int): FeedItem scheduling start date comes after end date. + MISSING_FEED_ITEM_START_TIME (int): FeedItem scheduling start time is missing. + MISSING_FEED_ITEM_END_TIME (int): FeedItem scheduling end time is missing. + MISSING_FEED_ITEM_ID (int): Cannot compute system attributes on a FeedItem that has no FeedItemId. + VANITY_PHONE_NUMBER_NOT_ALLOWED (int): Call extension vanity phone numbers are not supported. + INVALID_REVIEW_EXTENSION_SNIPPET (int): Invalid review text. + INVALID_NUMBER_FORMAT (int): Invalid format for numeric value in ad parameter. + INVALID_DATE_FORMAT (int): Invalid format for date value in ad parameter. + INVALID_PRICE_FORMAT (int): Invalid format for price value in ad parameter. + UNKNOWN_PLACEHOLDER_FIELD (int): Unrecognized type given for value in ad parameter. + MISSING_ENHANCED_SITELINK_DESCRIPTION_LINE (int): Enhanced sitelinks must have both description lines specified. + REVIEW_EXTENSION_SOURCE_INELIGIBLE (int): Review source is ineligible. + HYPHENS_IN_REVIEW_EXTENSION_SNIPPET (int): Review text cannot contain hyphens or dashes. + DOUBLE_QUOTES_IN_REVIEW_EXTENSION_SNIPPET (int): Review text cannot contain double quote characters. + QUOTES_IN_REVIEW_EXTENSION_SNIPPET (int): Review text cannot contain quote characters. + INVALID_FORM_ENCODED_PARAMS (int): Parameters are encoded in the wrong format. + INVALID_URL_PARAMETER_NAME (int): URL parameter name must contain only letters, numbers, underscores, and + dashes. + NO_GEOCODING_RESULT (int): Cannot find address location. + SOURCE_NAME_IN_REVIEW_EXTENSION_TEXT (int): Review extension text has source name. + CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED (int): Some phone numbers can be shorter than usual. Some of these short numbers + are carrier-specific, and we disallow those in ad extensions because they + will not be available to all users. + INVALID_PLACEHOLDER_FIELD_ID (int): Triggered when a request references a placeholder field id that does not + exist. + INVALID_URL_TAG (int): URL contains invalid ValueTrack tags or format. + LIST_TOO_LONG (int): Provided list exceeds acceptable size. + INVALID_ATTRIBUTES_COMBINATION (int): Certain combinations of attributes aren't allowed to be specified in the + same feed item. + DUPLICATE_VALUES (int): An attribute has the same value repeatedly. + INVALID_CALL_CONVERSION_ACTION_ID (int): Advertisers can link a conversion action with a phone number to indicate + that sufficiently long calls forwarded to that phone number should be + counted as conversions of the specified type. This is an error message + indicating that the conversion action specified is invalid (e.g., the + conversion action does not exist within the appropriate Google Ads + account, or it is a type of conversion not appropriate to phone call + conversions). + CANNOT_SET_WITHOUT_FINAL_URLS (int): Tracking template requires final url to be set. + APP_ID_DOESNT_EXIST_IN_APP_STORE (int): An app id was provided that doesn't exist in the given app store. + INVALID_FINAL_URL (int): Invalid U2 final url. + INVALID_TRACKING_URL (int): Invalid U2 tracking url. + INVALID_FINAL_URL_FOR_APP_DOWNLOAD_URL (int): Final URL should start from App download URL. + LIST_TOO_SHORT (int): List provided is too short. + INVALID_USER_ACTION (int): User Action field has invalid value. + INVALID_TYPE_NAME (int): Type field has invalid value. + INVALID_EVENT_CHANGE_STATUS (int): Change status for event is invalid. + INVALID_SNIPPETS_HEADER (int): The header of a structured snippets extension is not one of the valid + headers. + INVALID_ANDROID_APP_LINK (int): Android app link is not formatted correctly + NUMBER_TYPE_WITH_CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY (int): Phone number incompatible with call tracking for country. + RESERVED_KEYWORD_OTHER (int): The input is identical to a reserved keyword + DUPLICATE_OPTION_LABELS (int): Each option label in the message extension must be unique. + DUPLICATE_OPTION_PREFILLS (int): Each option prefill in the message extension must be unique. + UNEQUAL_LIST_LENGTHS (int): In message extensions, the number of optional labels and optional + prefills must be the same. + INCONSISTENT_CURRENCY_CODES (int): All currency codes in an ad extension must be the same. + PRICE_EXTENSION_HAS_DUPLICATED_HEADERS (int): Headers in price extension are not unique. + ITEM_HAS_DUPLICATED_HEADER_AND_DESCRIPTION (int): Header and description in an item are the same. + PRICE_EXTENSION_HAS_TOO_FEW_ITEMS (int): Price extension has too few items. + UNSUPPORTED_VALUE (int): The given value is not supported. + INVALID_FINAL_MOBILE_URL (int): Invalid final mobile url. + INVALID_KEYWORDLESS_AD_RULE_LABEL (int): The given string value of Label contains invalid characters + VALUE_TRACK_PARAMETER_NOT_SUPPORTED (int): The given URL contains value track parameters. + UNSUPPORTED_VALUE_IN_SELECTED_LANGUAGE (int): The given value is not supported in the selected language of an + extension. + INVALID_IOS_APP_LINK (int): The iOS app link is not formatted correctly. + MISSING_IOS_APP_LINK_OR_IOS_APP_STORE_ID (int): iOS app link or iOS app store id is missing. + PROMOTION_INVALID_TIME (int): Promotion time is invalid. + PROMOTION_CANNOT_SET_PERCENT_OFF_AND_MONEY_AMOUNT_OFF (int): Both the percent off and money amount off fields are set. + PROMOTION_CANNOT_SET_PROMOTION_CODE_AND_ORDERS_OVER_AMOUNT (int): Both the promotion code and orders over amount fields are set. + TOO_MANY_DECIMAL_PLACES_SPECIFIED (int): Too many decimal places are specified. + AD_CUSTOMIZERS_NOT_ALLOWED (int): Ad Customizers are present and not allowed. + INVALID_LANGUAGE_CODE (int): Language code is not valid. + UNSUPPORTED_LANGUAGE (int): Language is not supported. + IF_FUNCTION_NOT_ALLOWED (int): IF Function is present and not allowed. + INVALID_FINAL_URL_SUFFIX (int): Final url suffix is not valid. + INVALID_TAG_IN_FINAL_URL_SUFFIX (int): Final url suffix contains an invalid tag. + INVALID_FINAL_URL_SUFFIX_FORMAT (int): Final url suffix is formatted incorrectly. + CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED (int): Consent for call recording, which is required for the use of call + extensions, was not provided by the advertiser. + ONLY_ONE_DELIVERY_OPTION_IS_ALLOWED (int): Multiple message delivery options are set. + NO_DELIVERY_OPTION_IS_SET (int): No message delivery option is set. + INVALID_CONVERSION_REPORTING_STATE (int): String value of conversion reporting state field is not valid. + IMAGE_SIZE_WRONG (int): Image size is not right. + EMAIL_DELIVERY_NOT_AVAILABLE_IN_COUNTRY (int): Email delivery is not supported in the country specified in the country + code field. + AUTO_REPLY_NOT_AVAILABLE_IN_COUNTRY (int): Auto reply is not supported in the country specified in the country code + field. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + STRING_TOO_SHORT = 2 + STRING_TOO_LONG = 3 + VALUE_NOT_SPECIFIED = 4 + INVALID_DOMESTIC_PHONE_NUMBER_FORMAT = 5 + INVALID_PHONE_NUMBER = 6 + PHONE_NUMBER_NOT_SUPPORTED_FOR_COUNTRY = 7 + PREMIUM_RATE_NUMBER_NOT_ALLOWED = 8 + DISALLOWED_NUMBER_TYPE = 9 + VALUE_OUT_OF_RANGE = 10 + CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY = 11 + CUSTOMER_NOT_WHITELISTED_FOR_CALLTRACKING = 12 + INVALID_COUNTRY_CODE = 13 + INVALID_APP_ID = 14 + MISSING_ATTRIBUTES_FOR_FIELDS = 15 + INVALID_TYPE_ID = 16 + INVALID_EMAIL_ADDRESS = 17 + INVALID_HTTPS_URL = 18 + MISSING_DELIVERY_ADDRESS = 19 + START_DATE_AFTER_END_DATE = 20 + MISSING_FEED_ITEM_START_TIME = 21 + MISSING_FEED_ITEM_END_TIME = 22 + MISSING_FEED_ITEM_ID = 23 + VANITY_PHONE_NUMBER_NOT_ALLOWED = 24 + INVALID_REVIEW_EXTENSION_SNIPPET = 25 + INVALID_NUMBER_FORMAT = 26 + INVALID_DATE_FORMAT = 27 + INVALID_PRICE_FORMAT = 28 + UNKNOWN_PLACEHOLDER_FIELD = 29 + MISSING_ENHANCED_SITELINK_DESCRIPTION_LINE = 30 + REVIEW_EXTENSION_SOURCE_INELIGIBLE = 31 + HYPHENS_IN_REVIEW_EXTENSION_SNIPPET = 32 + DOUBLE_QUOTES_IN_REVIEW_EXTENSION_SNIPPET = 33 + QUOTES_IN_REVIEW_EXTENSION_SNIPPET = 34 + INVALID_FORM_ENCODED_PARAMS = 35 + INVALID_URL_PARAMETER_NAME = 36 + NO_GEOCODING_RESULT = 37 + SOURCE_NAME_IN_REVIEW_EXTENSION_TEXT = 38 + CARRIER_SPECIFIC_SHORT_NUMBER_NOT_ALLOWED = 39 + INVALID_PLACEHOLDER_FIELD_ID = 40 + INVALID_URL_TAG = 41 + LIST_TOO_LONG = 42 + INVALID_ATTRIBUTES_COMBINATION = 43 + DUPLICATE_VALUES = 44 + INVALID_CALL_CONVERSION_ACTION_ID = 45 + CANNOT_SET_WITHOUT_FINAL_URLS = 46 + APP_ID_DOESNT_EXIST_IN_APP_STORE = 47 + INVALID_FINAL_URL = 48 + INVALID_TRACKING_URL = 49 + INVALID_FINAL_URL_FOR_APP_DOWNLOAD_URL = 50 + LIST_TOO_SHORT = 51 + INVALID_USER_ACTION = 52 + INVALID_TYPE_NAME = 53 + INVALID_EVENT_CHANGE_STATUS = 54 + INVALID_SNIPPETS_HEADER = 55 + INVALID_ANDROID_APP_LINK = 56 + NUMBER_TYPE_WITH_CALLTRACKING_NOT_SUPPORTED_FOR_COUNTRY = 57 + RESERVED_KEYWORD_OTHER = 58 + DUPLICATE_OPTION_LABELS = 59 + DUPLICATE_OPTION_PREFILLS = 60 + UNEQUAL_LIST_LENGTHS = 61 + INCONSISTENT_CURRENCY_CODES = 62 + PRICE_EXTENSION_HAS_DUPLICATED_HEADERS = 63 + ITEM_HAS_DUPLICATED_HEADER_AND_DESCRIPTION = 64 + PRICE_EXTENSION_HAS_TOO_FEW_ITEMS = 65 + UNSUPPORTED_VALUE = 66 + INVALID_FINAL_MOBILE_URL = 67 + INVALID_KEYWORDLESS_AD_RULE_LABEL = 68 + VALUE_TRACK_PARAMETER_NOT_SUPPORTED = 69 + UNSUPPORTED_VALUE_IN_SELECTED_LANGUAGE = 70 + INVALID_IOS_APP_LINK = 71 + MISSING_IOS_APP_LINK_OR_IOS_APP_STORE_ID = 72 + PROMOTION_INVALID_TIME = 73 + PROMOTION_CANNOT_SET_PERCENT_OFF_AND_MONEY_AMOUNT_OFF = 74 + PROMOTION_CANNOT_SET_PROMOTION_CODE_AND_ORDERS_OVER_AMOUNT = 75 + TOO_MANY_DECIMAL_PLACES_SPECIFIED = 76 + AD_CUSTOMIZERS_NOT_ALLOWED = 77 + INVALID_LANGUAGE_CODE = 78 + UNSUPPORTED_LANGUAGE = 79 + IF_FUNCTION_NOT_ALLOWED = 80 + INVALID_FINAL_URL_SUFFIX = 81 + INVALID_TAG_IN_FINAL_URL_SUFFIX = 82 + INVALID_FINAL_URL_SUFFIX_FORMAT = 83 + CUSTOMER_CONSENT_FOR_CALL_RECORDING_REQUIRED = 84 + ONLY_ONE_DELIVERY_OPTION_IS_ALLOWED = 85 + NO_DELIVERY_OPTION_IS_SET = 86 + INVALID_CONVERSION_REPORTING_STATE = 87 + IMAGE_SIZE_WRONG = 88 + EMAIL_DELIVERY_NOT_AVAILABLE_IN_COUNTRY = 89 + AUTO_REPLY_NOT_AVAILABLE_IN_COUNTRY = 90 + + +class FeedItemValidationStatusEnum(object): + class FeedItemValidationStatus(enum.IntEnum): + """ + The possible validation statuses of a feed item. + + Attributes: + UNSPECIFIED (int): No value has been specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + PENDING (int): Validation pending. + INVALID (int): An error was found. + VALID (int): Feed item is semantically well-formed. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + PENDING = 2 + INVALID = 3 + VALID = 4 + + +class FeedLinkStatusEnum(object): + class FeedLinkStatus(enum.IntEnum): + """ + Possible statuses of a feed link. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + ENABLED (int): Feed link is enabled. + REMOVED (int): Feed link has been removed. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + ENABLED = 2 + REMOVED = 3 + + +class FeedMappingCriterionTypeEnum(object): + class FeedMappingCriterionType(enum.IntEnum): + """ + Possible placeholder types for a feed mapping. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + LOCATION_EXTENSION_TARGETING (int): Allows campaign targeting at locations within a location feed. + DSA_PAGE_FEED (int): Allows url targeting for your dynamic search ads within a page feed. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + LOCATION_EXTENSION_TARGETING = 4 + DSA_PAGE_FEED = 3 + + +class FeedMappingErrorEnum(object): + class FeedMappingError(enum.IntEnum): + """ + Enum describing possible feed item errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + INVALID_PLACEHOLDER_FIELD (int): The given placeholder field does not exist. + INVALID_CRITERION_FIELD (int): The given criterion field does not exist. + INVALID_PLACEHOLDER_TYPE (int): The given placeholder type does not exist. + INVALID_CRITERION_TYPE (int): The given criterion type does not exist. + NO_ATTRIBUTE_FIELD_MAPPINGS (int): A feed mapping must contain at least one attribute field mapping. + FEED_ATTRIBUTE_TYPE_MISMATCH (int): The type of the feed attribute referenced in the attribute field mapping + must match the type of the placeholder field. + CANNOT_OPERATE_ON_MAPPINGS_FOR_SYSTEM_GENERATED_FEED (int): A feed mapping for a system generated feed cannot be operated on. + MULTIPLE_MAPPINGS_FOR_PLACEHOLDER_TYPE (int): Only one feed mapping for a placeholder type is allowed per feed or + customer (depending on the placeholder type). + MULTIPLE_MAPPINGS_FOR_CRITERION_TYPE (int): Only one feed mapping for a criterion type is allowed per customer. + MULTIPLE_MAPPINGS_FOR_PLACEHOLDER_FIELD (int): Only one feed attribute mapping for a placeholder field is allowed + (depending on the placeholder type). + MULTIPLE_MAPPINGS_FOR_CRITERION_FIELD (int): Only one feed attribute mapping for a criterion field is allowed + (depending on the criterion type). + UNEXPECTED_ATTRIBUTE_FIELD_MAPPINGS (int): This feed mapping may not contain any explicit attribute field mappings. + LOCATION_PLACEHOLDER_ONLY_FOR_PLACES_FEEDS (int): Location placeholder feed mappings can only be created for Places feeds. + CANNOT_MODIFY_MAPPINGS_FOR_TYPED_FEED (int): Mappings for typed feeds cannot be modified. + 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. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + INVALID_PLACEHOLDER_FIELD = 2 + INVALID_CRITERION_FIELD = 3 + INVALID_PLACEHOLDER_TYPE = 4 + INVALID_CRITERION_TYPE = 5 + NO_ATTRIBUTE_FIELD_MAPPINGS = 7 + FEED_ATTRIBUTE_TYPE_MISMATCH = 8 + CANNOT_OPERATE_ON_MAPPINGS_FOR_SYSTEM_GENERATED_FEED = 9 + MULTIPLE_MAPPINGS_FOR_PLACEHOLDER_TYPE = 10 + MULTIPLE_MAPPINGS_FOR_CRITERION_TYPE = 11 + MULTIPLE_MAPPINGS_FOR_PLACEHOLDER_FIELD = 12 + MULTIPLE_MAPPINGS_FOR_CRITERION_FIELD = 13 + UNEXPECTED_ATTRIBUTE_FIELD_MAPPINGS = 14 + LOCATION_PLACEHOLDER_ONLY_FOR_PLACES_FEEDS = 15 + 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 + + +class FeedMappingStatusEnum(object): + class FeedMappingStatus(enum.IntEnum): + """ + Possible statuses of a feed mapping. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + ENABLED (int): Feed mapping is enabled. + REMOVED (int): Feed mapping has been removed. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + ENABLED = 2 + REMOVED = 3 + + +class FeedOriginEnum(object): + class FeedOrigin(enum.IntEnum): + """ + Possible values for a feed origin. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + USER (int): The FeedAttributes for this Feed are managed by the + user. Users can add FeedAttributes to this Feed. + GOOGLE (int): The FeedAttributes for an GOOGLE Feed are created by Google. A feed of + this type is maintained by Google and will have the correct attributes + for the placeholder type of the feed. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + USER = 2 + GOOGLE = 3 + + +class FeedStatusEnum(object): + class FeedStatus(enum.IntEnum): + """ + Possible statuses of a feed. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + ENABLED (int): Feed is enabled. + REMOVED (int): Feed has been removed. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + ENABLED = 2 + REMOVED = 3 + + +class FieldErrorEnum(object): + class FieldError(enum.IntEnum): + """ + Enum describing possible field errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + REQUIRED (int): The required field was not present in the resource. + IMMUTABLE_FIELD (int): The field attempted to be mutated is immutable. + INVALID_VALUE (int): The field's value is invalid. + VALUE_MUST_BE_UNSET (int): The field cannot be set. + REQUIRED_NONEMPTY_LIST (int): The required repeated field was empty. + FIELD_CANNOT_BE_CLEARED (int): The field cannot be cleared. + BLACKLISTED_VALUE (int): The field's value is on a blacklist for this field. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + REQUIRED = 2 + IMMUTABLE_FIELD = 3 + INVALID_VALUE = 4 + VALUE_MUST_BE_UNSET = 5 + REQUIRED_NONEMPTY_LIST = 6 + FIELD_CANNOT_BE_CLEARED = 7 + BLACKLISTED_VALUE = 8 + + +class FieldMaskErrorEnum(object): + class FieldMaskError(enum.IntEnum): + """ + Enum describing possible field mask errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + FIELD_MASK_MISSING (int): The field mask must be provided for update operations. + FIELD_MASK_NOT_ALLOWED (int): The field mask must be empty for create and remove operations. + FIELD_NOT_FOUND (int): The field mask contained an invalid field. + FIELD_HAS_SUBFIELDS (int): The field mask updated a field with subfields. Fields with subfields may + be cleared, but not updated. To fix this, the field mask should select + all the subfields of the invalid field. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + FIELD_MASK_MISSING = 5 + FIELD_MASK_NOT_ALLOWED = 4 + FIELD_NOT_FOUND = 2 + FIELD_HAS_SUBFIELDS = 3 + + +class FlightPlaceholderFieldEnum(object): + class FlightPlaceholderField(enum.IntEnum): + """ + Possible values for Flight placeholder fields. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + DESTINATION_ID (int): Data Type: STRING. Required. Destination id. Example: PAR, LON. + For feed items that only have destination id, destination id must be a + unique key. For feed items that have both destination id and origin id, + then the combination must be a unique key. + ORIGIN_ID (int): Data Type: STRING. Origin id. Example: PAR, LON. + Optional. Combination of destination id and origin id must be unique per + offer. + FLIGHT_DESCRIPTION (int): Data Type: STRING. Required. Main headline with product name to be shown + in dynamic ad. + ORIGIN_NAME (int): Data Type: STRING. Shorter names are recommended. + DESTINATION_NAME (int): Data Type: STRING. Shorter names are recommended. + FLIGHT_PRICE (int): Data Type: STRING. Price to be shown in the ad. + Example: "100.00 USD" + FORMATTED_PRICE (int): Data Type: STRING. Formatted price to be shown in the ad. + Example: "Starting at $100.00 USD", "$80 - $100" + FLIGHT_SALE_PRICE (int): Data Type: STRING. Sale price to be shown in the ad. + Example: "80.00 USD" + FORMATTED_SALE_PRICE (int): Data Type: STRING. Formatted sale price to be shown in the ad. + Example: "On sale for $80.00", "$60 - $80" + IMAGE_URL (int): Data Type: URL. Image to be displayed in the ad. + FINAL_URLS (int): Data Type: URL\_LIST. Required. Final URLs for the ad when using + Upgraded URLs. User will be redirected to these URLs when they click on + an ad, or when they click on a specific flight for ads that show + multiple flights. + FINAL_MOBILE_URLS (int): Data Type: URL\_LIST. Final mobile URLs for the ad when using Upgraded + URLs. + TRACKING_URL (int): Data Type: URL. Tracking template for the ad when using Upgraded URLs. + ANDROID_APP_LINK (int): Data Type: STRING. Android app link. Must be formatted as: + android-app://{package\_id}/{scheme}/{host\_path}. The components are + defined as follows: package\_id: app ID as specified in Google Play. + scheme: the scheme to pass to the application. Can be HTTP, or a custom + scheme. host\_path: identifies the specific content within your + application. + SIMILAR_DESTINATION_IDS (int): Data Type: STRING\_LIST. List of recommended destination IDs to show + together with this item. + IOS_APP_LINK (int): Data Type: STRING. iOS app link. + IOS_APP_STORE_ID (int): Data Type: INT64. iOS app store ID. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + DESTINATION_ID = 2 + ORIGIN_ID = 3 + FLIGHT_DESCRIPTION = 4 + ORIGIN_NAME = 5 + DESTINATION_NAME = 6 + FLIGHT_PRICE = 7 + FORMATTED_PRICE = 8 + FLIGHT_SALE_PRICE = 9 + FORMATTED_SALE_PRICE = 10 + IMAGE_URL = 11 + FINAL_URLS = 12 + FINAL_MOBILE_URLS = 13 + TRACKING_URL = 14 + ANDROID_APP_LINK = 15 + SIMILAR_DESTINATION_IDS = 16 + IOS_APP_LINK = 17 + IOS_APP_STORE_ID = 18 + + +class FrequencyCapEventTypeEnum(object): + class FrequencyCapEventType(enum.IntEnum): + """ + The type of event that the cap applies to (e.g. impression). + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + IMPRESSION (int): The cap applies on ad impressions. + VIDEO_VIEW (int): The cap applies on video ad views. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + IMPRESSION = 2 + VIDEO_VIEW = 3 + + +class FrequencyCapLevelEnum(object): + class FrequencyCapLevel(enum.IntEnum): + """ + The level on which the cap is to be applied (e.g ad group ad, ad group). + Cap is applied to all the resources of this level. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + AD_GROUP_AD (int): The cap is applied at the ad group ad level. + AD_GROUP (int): The cap is applied at the ad group level. + CAMPAIGN (int): The cap is applied at the campaign level. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + AD_GROUP_AD = 2 + AD_GROUP = 3 + CAMPAIGN = 4 + + +class FrequencyCapTimeUnitEnum(object): + class FrequencyCapTimeUnit(enum.IntEnum): + """ + Unit of time the cap is defined at (e.g. day, week). + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + DAY (int): The cap would define limit per one day. + WEEK (int): The cap would define limit per one week. + MONTH (int): The cap would define limit per one month. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + DAY = 2 + WEEK = 3 + MONTH = 4 + + +class FunctionErrorEnum(object): + class FunctionError(enum.IntEnum): + """ + Enum describing possible function errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + INVALID_FUNCTION_FORMAT (int): The format of the function is not recognized as a supported function + format. + DATA_TYPE_MISMATCH (int): Operand data types do not match. + INVALID_CONJUNCTION_OPERANDS (int): The operands cannot be used together in a conjunction. + INVALID_NUMBER_OF_OPERANDS (int): Invalid numer of Operands. + INVALID_OPERAND_TYPE (int): Operand Type not supported. + INVALID_OPERATOR (int): Operator not supported. + INVALID_REQUEST_CONTEXT_TYPE (int): Request context type not supported. + INVALID_FUNCTION_FOR_CALL_PLACEHOLDER (int): The matching function is not allowed for call placeholders + INVALID_FUNCTION_FOR_PLACEHOLDER (int): The matching function is not allowed for the specified placeholder + INVALID_OPERAND (int): Invalid operand. + MISSING_CONSTANT_OPERAND_VALUE (int): Missing value for the constant operand. + INVALID_CONSTANT_OPERAND_VALUE (int): The value of the constant operand is invalid. + INVALID_NESTING (int): Invalid function nesting. + MULTIPLE_FEED_IDS_NOT_SUPPORTED (int): The Feed ID was different from another Feed ID in the same function. + INVALID_FUNCTION_FOR_FEED_WITH_FIXED_SCHEMA (int): The matching function is invalid for use with a feed with a fixed schema. + INVALID_ATTRIBUTE_NAME (int): Invalid attribute name. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + INVALID_FUNCTION_FORMAT = 2 + DATA_TYPE_MISMATCH = 3 + INVALID_CONJUNCTION_OPERANDS = 4 + INVALID_NUMBER_OF_OPERANDS = 5 + INVALID_OPERAND_TYPE = 6 + INVALID_OPERATOR = 7 + INVALID_REQUEST_CONTEXT_TYPE = 8 + INVALID_FUNCTION_FOR_CALL_PLACEHOLDER = 9 + INVALID_FUNCTION_FOR_PLACEHOLDER = 10 + INVALID_OPERAND = 11 + MISSING_CONSTANT_OPERAND_VALUE = 12 + INVALID_CONSTANT_OPERAND_VALUE = 13 + INVALID_NESTING = 14 + MULTIPLE_FEED_IDS_NOT_SUPPORTED = 15 + INVALID_FUNCTION_FOR_FEED_WITH_FIXED_SCHEMA = 16 + INVALID_ATTRIBUTE_NAME = 17 + + +class FunctionParsingErrorEnum(object): + class FunctionParsingError(enum.IntEnum): + """ + Enum describing possible function parsing errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + NO_MORE_INPUT (int): Unexpected end of function string. + EXPECTED_CHARACTER (int): Could not find an expected character. + UNEXPECTED_SEPARATOR (int): Unexpected separator character. + UNMATCHED_LEFT_BRACKET (int): Unmatched left bracket or parenthesis. + UNMATCHED_RIGHT_BRACKET (int): Unmatched right bracket or parenthesis. + TOO_MANY_NESTED_FUNCTIONS (int): Functions are nested too deeply. + MISSING_RIGHT_HAND_OPERAND (int): Missing right-hand-side operand. + INVALID_OPERATOR_NAME (int): Invalid operator/function name. + FEED_ATTRIBUTE_OPERAND_ARGUMENT_NOT_INTEGER (int): Feed attribute operand's argument is not an integer. + NO_OPERANDS (int): Missing function operands. + TOO_MANY_OPERANDS (int): Function had too many operands. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + NO_MORE_INPUT = 2 + EXPECTED_CHARACTER = 3 + UNEXPECTED_SEPARATOR = 4 + UNMATCHED_LEFT_BRACKET = 5 + UNMATCHED_RIGHT_BRACKET = 6 + TOO_MANY_NESTED_FUNCTIONS = 7 + MISSING_RIGHT_HAND_OPERAND = 8 + INVALID_OPERATOR_NAME = 9 + FEED_ATTRIBUTE_OPERAND_ARGUMENT_NOT_INTEGER = 10 + NO_OPERANDS = 11 + TOO_MANY_OPERANDS = 12 + + +class GenderTypeEnum(object): + class GenderType(enum.IntEnum): + """ + The type of demographic genders (e.g. female). + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + MALE (int): Male. + FEMALE (int): Female. + UNDETERMINED (int): Undetermined gender. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + MALE = 10 + FEMALE = 11 + UNDETERMINED = 20 + + +class GeoTargetConstantStatusEnum(object): + class GeoTargetConstantStatus(enum.IntEnum): + """ + The possible statuses of a geo target constant. + + 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. + ENABLED (int): The geo target constant is valid. + REMOVAL_PLANNED (int): The geo target constant is obsolete and will be removed. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + ENABLED = 2 + REMOVAL_PLANNED = 3 + + +class GeoTargetConstantSuggestionErrorEnum(object): + class GeoTargetConstantSuggestionError(enum.IntEnum): + """ + Enum describing possible geo target constant suggestion errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + LOCATION_NAME_SIZE_LIMIT (int): A location name cannot be greater than 300 characters. + LOCATION_NAME_LIMIT (int): At most 25 location names can be specified in a SuggestGeoTargetConstants + method. + INVALID_COUNTRY_CODE (int): The country code is invalid. + REQUEST_PARAMETERS_UNSET (int): Geo target constant resource names or location names must be provided in + the request. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + LOCATION_NAME_SIZE_LIMIT = 2 + LOCATION_NAME_LIMIT = 3 + INVALID_COUNTRY_CODE = 4 + REQUEST_PARAMETERS_UNSET = 5 + + +class GeoTargetingRestrictionEnum(object): + class GeoTargetingRestriction(enum.IntEnum): + """ + A restriction used to determine if the request context's + geo should be matched. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + LOCATION_OF_PRESENCE (int): Indicates that request context should match the physical location of + the user. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + LOCATION_OF_PRESENCE = 2 + + +class GeoTargetingTypeEnum(object): + class GeoTargetingType(enum.IntEnum): + """ + The possible geo targeting types. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): The value is unknown in this version. + AREA_OF_INTEREST (int): Location the user is interested in while making the query. + LOCATION_OF_PRESENCE (int): Location of the user issuing the query. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + AREA_OF_INTEREST = 2 + LOCATION_OF_PRESENCE = 3 + + +class GoogleAdsFieldCategoryEnum(object): + class GoogleAdsFieldCategory(enum.IntEnum): + """ + The category of the artifact. + + Attributes: + UNSPECIFIED (int): Unspecified + UNKNOWN (int): Unknown + RESOURCE (int): The described artifact is a resource. + ATTRIBUTE (int): The described artifact is a field and is an attribute of a resource. + Including a resource attribute field in a query may segment the query if + the resource to which it is attributed segments the resource found in + the FROM clause. + SEGMENT (int): The described artifact is a field and always segments search queries. + METRIC (int): The described artifact is a field and is a metric. It never segments + search queries. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + RESOURCE = 2 + ATTRIBUTE = 3 + SEGMENT = 5 + METRIC = 6 + + +class GoogleAdsFieldDataTypeEnum(object): + class GoogleAdsFieldDataType(enum.IntEnum): + """ + These are the various types a GoogleAdsService artifact may take on. + + Attributes: + UNSPECIFIED (int): Unspecified + UNKNOWN (int): Unknown + BOOLEAN (int): Maps to google.protobuf.BoolValue + + Applicable operators: =, != + DATE (int): Maps to google.protobuf.StringValue. It can be compared using the set of + operators specific to dates however. + + Applicable operators: =, <, >, <=, >=, BETWEEN, DURING, and IN + DOUBLE (int): Maps to google.protobuf.DoubleValue + + Applicable operators: =, !=, <, >, IN, NOT IN + ENUM (int): Maps to an enum. It's specific definition can be found at type\_url. + + Applicable operators: =, !=, IN, NOT IN + FLOAT (int): Maps to google.protobuf.FloatValue + + Applicable operators: =, !=, <, >, IN, NOT IN + INT32 (int): Maps to google.protobuf.Int32Value + + Applicable operators: =, !=, <, >, <=, >=, BETWEEN, IN, NOT IN + INT64 (int): Maps to google.protobuf.Int64Value + + Applicable operators: =, !=, <, >, <=, >=, BETWEEN, IN, NOT IN + MESSAGE (int): Maps to a protocol buffer message type. The data type's details can be + found in type\_url. + + No operators work with MESSAGE fields. + RESOURCE_NAME (int): Maps to google.protobuf.StringValue. Represents the resource name + (unique id) of a resource or one of its foreign keys. + + No operators work with RESOURCE\_NAME fields. + STRING (int): Maps to google.protobuf.StringValue. + + Applicable operators: =, !=, LIKE, NOT LIKE, IN, NOT IN + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + BOOLEAN = 2 + DATE = 3 + DOUBLE = 4 + ENUM = 5 + FLOAT = 6 + INT32 = 7 + INT64 = 8 + MESSAGE = 9 + RESOURCE_NAME = 10 + STRING = 11 + + +class HeaderErrorEnum(object): + class HeaderError(enum.IntEnum): + """ + Enum describing possible header errors. + + Attributes: + 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. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + INVALID_LOGIN_CUSTOMER_ID = 3 + + +class HotelDateSelectionTypeEnum(object): + class HotelDateSelectionType(enum.IntEnum): + """ + Enum describing possible hotel date selection types. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + DEFAULT_SELECTION (int): Dates selected by default. + USER_SELECTED (int): Dates selected by the user. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + DEFAULT_SELECTION = 50 + USER_SELECTED = 51 + + +class HotelPlaceholderFieldEnum(object): + class HotelPlaceholderField(enum.IntEnum): + """ + Possible values for Hotel placeholder fields. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + PROPERTY_ID (int): Data Type: STRING. Required. Unique ID. + PROPERTY_NAME (int): Data Type: STRING. Required. Main headline with property name to be shown + in dynamic ad. + DESTINATION_NAME (int): Data Type: STRING. Name of destination to be shown in dynamic ad. + DESCRIPTION (int): Data Type: STRING. Description of destination to be shown in dynamic ad. + ADDRESS (int): Data Type: STRING. Complete property address, including postal code. + PRICE (int): Data Type: STRING. Price to be shown in the ad. + Example: "100.00 USD" + FORMATTED_PRICE (int): Data Type: STRING. Formatted price to be shown in the ad. + Example: "Starting at $100.00 USD", "$80 - $100" + SALE_PRICE (int): Data Type: STRING. Sale price to be shown in the ad. + Example: "80.00 USD" + FORMATTED_SALE_PRICE (int): Data Type: STRING. Formatted sale price to be shown in the ad. + Example: "On sale for $80.00", "$60 - $80" + IMAGE_URL (int): Data Type: URL. Image to be displayed in the ad. + CATEGORY (int): Data Type: STRING. Category of property used to group like items together + for recommendation engine. + STAR_RATING (int): Data Type: INT64. Star rating (1 to 5) used to group like items + together for recommendation engine. + CONTEXTUAL_KEYWORDS (int): Data Type: STRING\_LIST. Keywords used for product retrieval. + FINAL_URLS (int): Data Type: URL\_LIST. Required. Final URLs for the ad when using + Upgraded URLs. User will be redirected to these URLs when they click on + an ad, or when they click on a specific flight for ads that show + multiple flights. + FINAL_MOBILE_URLS (int): Data Type: URL\_LIST. Final mobile URLs for the ad when using Upgraded + URLs. + TRACKING_URL (int): Data Type: URL. Tracking template for the ad when using Upgraded URLs. + ANDROID_APP_LINK (int): Data Type: STRING. Android app link. Must be formatted as: + android-app://{package\_id}/{scheme}/{host\_path}. The components are + defined as follows: package\_id: app ID as specified in Google Play. + scheme: the scheme to pass to the application. Can be HTTP, or a custom + scheme. host\_path: identifies the specific content within your + application. + SIMILAR_PROPERTY_IDS (int): Data Type: STRING\_LIST. List of recommended property IDs to show + together with this item. + IOS_APP_LINK (int): Data Type: STRING. iOS app link. + IOS_APP_STORE_ID (int): Data Type: INT64. iOS app store ID. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + PROPERTY_ID = 2 + PROPERTY_NAME = 3 + DESTINATION_NAME = 4 + DESCRIPTION = 5 + ADDRESS = 6 + PRICE = 7 + FORMATTED_PRICE = 8 + SALE_PRICE = 9 + FORMATTED_SALE_PRICE = 10 + IMAGE_URL = 11 + CATEGORY = 12 + STAR_RATING = 13 + CONTEXTUAL_KEYWORDS = 14 + FINAL_URLS = 15 + FINAL_MOBILE_URLS = 16 + TRACKING_URL = 17 + ANDROID_APP_LINK = 18 + SIMILAR_PROPERTY_IDS = 19 + IOS_APP_LINK = 20 + IOS_APP_STORE_ID = 21 + + +class IdErrorEnum(object): + class IdError(enum.IntEnum): + """ + Enum describing possible id errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + NOT_FOUND (int): Id not found + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + NOT_FOUND = 2 + + +class ImageErrorEnum(object): + class ImageError(enum.IntEnum): + """ + Enum describing possible image errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + INVALID_IMAGE (int): The image is not valid. + STORAGE_ERROR (int): The image could not be stored. + BAD_REQUEST (int): There was a problem with the request. + UNEXPECTED_SIZE (int): The image is not of legal dimensions. + ANIMATED_NOT_ALLOWED (int): Animated image are not permitted. + ANIMATION_TOO_LONG (int): Animation is too long. + SERVER_ERROR (int): There was an error on the server. + CMYK_JPEG_NOT_ALLOWED (int): Image cannot be in CMYK color format. + FLASH_NOT_ALLOWED (int): Flash images are not permitted. + FLASH_WITHOUT_CLICKTAG (int): Flash images must support clickTag. + FLASH_ERROR_AFTER_FIXING_CLICK_TAG (int): A flash error has occurred after fixing the click tag. + ANIMATED_VISUAL_EFFECT (int): Unacceptable visual effects. + FLASH_ERROR (int): There was a problem with the flash image. + LAYOUT_PROBLEM (int): Incorrect image layout. + PROBLEM_READING_IMAGE_FILE (int): There was a problem reading the image file. + ERROR_STORING_IMAGE (int): There was an error storing the image. + ASPECT_RATIO_NOT_ALLOWED (int): The aspect ratio of the image is not allowed. + FLASH_HAS_NETWORK_OBJECTS (int): Flash cannot have network objects. + FLASH_HAS_NETWORK_METHODS (int): Flash cannot have network methods. + FLASH_HAS_URL (int): Flash cannot have a Url. + FLASH_HAS_MOUSE_TRACKING (int): Flash cannot use mouse tracking. + FLASH_HAS_RANDOM_NUM (int): Flash cannot have a random number. + FLASH_SELF_TARGETS (int): Ad click target cannot be '\_self'. + FLASH_BAD_GETURL_TARGET (int): GetUrl method should only use '\_blank'. + FLASH_VERSION_NOT_SUPPORTED (int): Flash version is not supported. + FLASH_WITHOUT_HARD_CODED_CLICK_URL (int): Flash movies need to have hard coded click URL or clickTAG + INVALID_FLASH_FILE (int): Uploaded flash file is corrupted. + FAILED_TO_FIX_CLICK_TAG_IN_FLASH (int): Uploaded flash file can be parsed, but the click tag can not be fixed + properly. + FLASH_ACCESSES_NETWORK_RESOURCES (int): Flash movie accesses network resources + FLASH_EXTERNAL_JS_CALL (int): Flash movie attempts to call external javascript code + FLASH_EXTERNAL_FS_CALL (int): Flash movie attempts to call flash system commands + FILE_TOO_LARGE (int): Image file is too large. + IMAGE_DATA_TOO_LARGE (int): Image data is too large. + IMAGE_PROCESSING_ERROR (int): Error while processing the image. + 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. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + INVALID_IMAGE = 2 + STORAGE_ERROR = 3 + BAD_REQUEST = 4 + UNEXPECTED_SIZE = 5 + ANIMATED_NOT_ALLOWED = 6 + ANIMATION_TOO_LONG = 7 + SERVER_ERROR = 8 + CMYK_JPEG_NOT_ALLOWED = 9 + FLASH_NOT_ALLOWED = 10 + FLASH_WITHOUT_CLICKTAG = 11 + FLASH_ERROR_AFTER_FIXING_CLICK_TAG = 12 + ANIMATED_VISUAL_EFFECT = 13 + FLASH_ERROR = 14 + LAYOUT_PROBLEM = 15 + PROBLEM_READING_IMAGE_FILE = 16 + ERROR_STORING_IMAGE = 17 + ASPECT_RATIO_NOT_ALLOWED = 18 + FLASH_HAS_NETWORK_OBJECTS = 19 + FLASH_HAS_NETWORK_METHODS = 20 + FLASH_HAS_URL = 21 + FLASH_HAS_MOUSE_TRACKING = 22 + FLASH_HAS_RANDOM_NUM = 23 + FLASH_SELF_TARGETS = 24 + FLASH_BAD_GETURL_TARGET = 25 + FLASH_VERSION_NOT_SUPPORTED = 26 + FLASH_WITHOUT_HARD_CODED_CLICK_URL = 27 + INVALID_FLASH_FILE = 28 + FAILED_TO_FIX_CLICK_TAG_IN_FLASH = 29 + FLASH_ACCESSES_NETWORK_RESOURCES = 30 + FLASH_EXTERNAL_JS_CALL = 31 + FLASH_EXTERNAL_FS_CALL = 32 + FILE_TOO_LARGE = 33 + IMAGE_DATA_TOO_LARGE = 34 + IMAGE_PROCESSING_ERROR = 35 + IMAGE_TOO_SMALL = 36 + INVALID_INPUT = 37 + PROBLEM_READING_FILE = 38 + + +class IncomeRangeTypeEnum(object): + class IncomeRangeType(enum.IntEnum): + """ + The type of demographic income ranges (e.g. between 0% to 50%). + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + INCOME_RANGE_0_50 (int): 0%-50%. + INCOME_RANGE_50_60 (int): 50% to 60%. + INCOME_RANGE_60_70 (int): 60% to 70%. + INCOME_RANGE_70_80 (int): 70% to 80%. + INCOME_RANGE_80_90 (int): 80% to 90%. + INCOME_RANGE_90_UP (int): Greater than 90%. + INCOME_RANGE_UNDETERMINED (int): Undetermined income range. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + INCOME_RANGE_0_50 = 510001 + INCOME_RANGE_50_60 = 510002 + INCOME_RANGE_60_70 = 510003 + INCOME_RANGE_70_80 = 510004 + INCOME_RANGE_80_90 = 510005 + INCOME_RANGE_90_UP = 510006 + INCOME_RANGE_UNDETERMINED = 510000 + + +class InteractionEventTypeEnum(object): + class InteractionEventType(enum.IntEnum): + """ + Enum describing possible types of payable and free interactions. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + CLICK (int): Click to site. In most cases, this interaction navigates to an external + location, usually the advertiser's landing page. This is also the default + InteractionEventType for click events. + ENGAGEMENT (int): The user's expressed intent to engage with the ad in-place. + VIDEO_VIEW (int): User viewed a video ad. + NONE (int): The default InteractionEventType for ad conversion events. + This is used when an ad conversion row does NOT indicate + that the free interactions (i.e., the ad conversions) + should be 'promoted' and reported as part of the core metrics. + These are simply other (ad) conversions. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + CLICK = 2 + ENGAGEMENT = 3 + VIDEO_VIEW = 4 + NONE = 5 + + +class InteractionTypeEnum(object): + class InteractionType(enum.IntEnum): + """ + Enum describing possible interaction types. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + CALLS (int): Calls. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + CALLS = 8000 + + +class InternalErrorEnum(object): + class InternalError(enum.IntEnum): + """ + Enum describing possible internal errors. + + Attributes: + 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. + TRANSIENT_ERROR (int): Google Ads API encountered an unexpected transient error. The user + should retry their request in these cases. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + INTERNAL_ERROR = 2 + ERROR_CODE_NOT_PUBLISHED = 3 + TRANSIENT_ERROR = 4 + + +class JobPlaceholderFieldEnum(object): + class JobPlaceholderField(enum.IntEnum): + """ + Possible values for Job placeholder fields. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + JOB_ID (int): Data Type: STRING. Required. If only JOB\_ID is specified, then it must + be unique. If both JOB\_ID and LOCATION\_ID are specified, then the pair + must be unique. ID) pair must be unique. + LOCATION_ID (int): Data Type: STRING. Combination of JOB\_ID and LOCATION\_ID must be + unique per offer. + TITLE (int): Data Type: STRING. Required. Main headline with job title to be shown in + dynamic ad. + SUBTITLE (int): Data Type: STRING. Job subtitle to be shown in dynamic ad. + DESCRIPTION (int): Data Type: STRING. Description of job to be shown in dynamic ad. + IMAGE_URL (int): Data Type: URL. Image to be displayed in the ad. Highly recommended for + image ads. + CATEGORY (int): Data Type: STRING. Category of property used to group like items together + for recommendation engine. + CONTEXTUAL_KEYWORDS (int): Data Type: STRING\_LIST. Keywords used for product retrieval. + ADDRESS (int): Data Type: STRING. Complete property address, including postal code. + SALARY (int): Data Type: STRING. Salary or salary range of job to be shown in dynamic + ad. + FINAL_URLS (int): Data Type: URL\_LIST. Required. Final URLs to be used in ad when using + Upgraded URLs; the more specific the better (e.g. the individual URL of + a specific job and its location). + FINAL_MOBILE_URLS (int): Data Type: URL\_LIST. Final mobile URLs for the ad when using Upgraded + URLs. + TRACKING_URL (int): Data Type: URL. Tracking template for the ad when using Upgraded URLs. + ANDROID_APP_LINK (int): Data Type: STRING. Android app link. Must be formatted as: + android-app://{package\_id}/{scheme}/{host\_path}. The components are + defined as follows: package\_id: app ID as specified in Google Play. + scheme: the scheme to pass to the application. Can be HTTP, or a custom + scheme. host\_path: identifies the specific content within your + application. + SIMILAR_JOB_IDS (int): Data Type: STRING\_LIST. List of recommended job IDs to show together + with this item. + IOS_APP_LINK (int): Data Type: STRING. iOS app link. + IOS_APP_STORE_ID (int): Data Type: INT64. iOS app store ID. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + JOB_ID = 2 + LOCATION_ID = 3 + TITLE = 4 + SUBTITLE = 5 + DESCRIPTION = 6 + IMAGE_URL = 7 + CATEGORY = 8 + CONTEXTUAL_KEYWORDS = 9 + ADDRESS = 10 + SALARY = 11 + FINAL_URLS = 12 + FINAL_MOBILE_URLS = 14 + TRACKING_URL = 15 + ANDROID_APP_LINK = 16 + SIMILAR_JOB_IDS = 17 + IOS_APP_LINK = 18 + IOS_APP_STORE_ID = 19 + + +class KeywordMatchTypeEnum(object): + class KeywordMatchType(enum.IntEnum): + """ + Possible Keyword match types. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + EXACT (int): Exact match. + PHRASE (int): Phrase match. + BROAD (int): Broad match. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + EXACT = 2 + PHRASE = 3 + BROAD = 4 + + +class KeywordPlanAdGroupErrorEnum(object): + class KeywordPlanAdGroupError(enum.IntEnum): + """ + Enum describing possible errors from applying a keyword plan ad group. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + INVALID_NAME (int): The keyword plan ad group name is missing, empty, longer than allowed + limit or contains invalid chars. + DUPLICATE_NAME (int): The keyword plan ad group name is duplicate to an existing keyword plan + AdGroup name or other keyword plan AdGroup name in the request. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + INVALID_NAME = 2 + DUPLICATE_NAME = 3 + + +class KeywordPlanCampaignErrorEnum(object): + class KeywordPlanCampaignError(enum.IntEnum): + """ + Enum describing possible errors from applying a keyword plan campaign. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + INVALID_NAME (int): A keyword plan campaign name is missing, empty, longer than allowed limit + or contains invalid chars. + INVALID_LANGUAGES (int): A keyword plan campaign contains one or more untargetable languages. + INVALID_GEOS (int): A keyword plan campaign contains one or more invalid geo targets. + DUPLICATE_NAME (int): The keyword plan campaign name is duplicate to an existing keyword plan + campaign name or other keyword plan campaign name in the request. + MAX_GEOS_EXCEEDED (int): The number of geo targets in the keyword plan campaign exceeds limits. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + INVALID_NAME = 2 + INVALID_LANGUAGES = 3 + INVALID_GEOS = 4 + DUPLICATE_NAME = 5 + MAX_GEOS_EXCEEDED = 6 + + +class KeywordPlanCompetitionLevelEnum(object): + class KeywordPlanCompetitionLevel(enum.IntEnum): + """ + Competition level of a keyword. + + 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. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + LOW = 2 + MEDIUM = 3 + HIGH = 4 + + +class KeywordPlanErrorEnum(object): + class KeywordPlanError(enum.IntEnum): + """ + Enum describing possible errors from applying a keyword plan. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + BID_MULTIPLIER_OUT_OF_RANGE (int): The plan's bid multiplier value is outside the valid range. + BID_TOO_HIGH (int): The plan's bid value is too high. + BID_TOO_LOW (int): The plan's bid value is too low. + BID_TOO_MANY_FRACTIONAL_DIGITS (int): The plan's cpc bid is not a multiple of the minimum billable unit. + DAILY_BUDGET_TOO_LOW (int): The plan's daily budget value is too low. + DAILY_BUDGET_TOO_MANY_FRACTIONAL_DIGITS (int): The plan's daily budget is not a multiple of the minimum billable unit. + INVALID_VALUE (int): The input has an invalid value. + KEYWORD_PLAN_HAS_NO_KEYWORDS (int): The plan has no keyword. + KEYWORD_PLAN_NOT_ENABLED (int): The plan is not enabled and API cannot provide mutation, forecast or + stats. + KEYWORD_PLAN_NOT_FOUND (int): The requested plan cannot be found for providing forecast or stats. + MISSING_BID (int): The plan is missing a cpc bid. + MISSING_FORECAST_PERIOD (int): The plan is missing required forecast\_period field. + INVALID_FORECAST_DATE_RANGE (int): The plan's forecast\_period has invalid forecast date range. + INVALID_NAME (int): The plan's name is invalid. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + BID_MULTIPLIER_OUT_OF_RANGE = 2 + BID_TOO_HIGH = 3 + BID_TOO_LOW = 4 + BID_TOO_MANY_FRACTIONAL_DIGITS = 5 + DAILY_BUDGET_TOO_LOW = 6 + DAILY_BUDGET_TOO_MANY_FRACTIONAL_DIGITS = 7 + INVALID_VALUE = 8 + KEYWORD_PLAN_HAS_NO_KEYWORDS = 9 + KEYWORD_PLAN_NOT_ENABLED = 10 + KEYWORD_PLAN_NOT_FOUND = 11 + MISSING_BID = 13 + MISSING_FORECAST_PERIOD = 14 + INVALID_FORECAST_DATE_RANGE = 15 + INVALID_NAME = 16 + + +class KeywordPlanForecastIntervalEnum(object): + class KeywordPlanForecastInterval(enum.IntEnum): + """ + Forecast intervals. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): The value is unknown in this version. + NEXT_WEEK (int): The next week date range for keyword plan. The next week is based + on the default locale of the user's account and is mostly SUN-SAT or + MON-SUN. + This can be different from next-7 days. + NEXT_MONTH (int): The next month date range for keyword plan. + NEXT_QUARTER (int): The next quarter date range for keyword plan. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + NEXT_WEEK = 3 + NEXT_MONTH = 4 + NEXT_QUARTER = 5 + + +class KeywordPlanIdeaErrorEnum(object): + class KeywordPlanIdeaError(enum.IntEnum): + """ + Enum describing possible errors from KeywordPlanIdeaService. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + URL_CRAWL_ERROR (int): Error when crawling the input URL. + INVALID_VALUE (int): The input has an invalid value. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + URL_CRAWL_ERROR = 2 + INVALID_VALUE = 3 + + +class KeywordPlanKeywordErrorEnum(object): + class KeywordPlanKeywordError(enum.IntEnum): + """ + Enum describing possible errors from applying a keyword plan 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. + """ + 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 + + +class KeywordPlanNegativeKeywordErrorEnum(object): + class KeywordPlanNegativeKeywordError(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. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + CANNOT_APPLY_INACTIVE_LABEL (int): An inactive label cannot be applied. + CANNOT_APPLY_LABEL_TO_DISABLED_AD_GROUP_CRITERION (int): A label cannot be applied to a disabled ad group criterion. + CANNOT_APPLY_LABEL_TO_NEGATIVE_AD_GROUP_CRITERION (int): A label cannot be applied to a negative ad group criterion. + EXCEEDED_LABEL_LIMIT_PER_TYPE (int): Cannot apply more than 50 labels per resource. + INVALID_RESOURCE_FOR_MANAGER_LABEL (int): Labels from a manager account cannot be applied to campaign, ad group, + ad group ad, or ad group criterion resources. + DUPLICATE_NAME (int): Label names must be unique. + INVALID_LABEL_NAME (int): Label names cannot be empty. + CANNOT_ATTACH_LABEL_TO_DRAFT (int): Labels cannot be applied to a draft. + CANNOT_ATTACH_NON_MANAGER_LABEL_TO_CUSTOMER (int): Labels not from a manager account cannot be applied to the customer + resource. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + CANNOT_APPLY_INACTIVE_LABEL = 2 + CANNOT_APPLY_LABEL_TO_DISABLED_AD_GROUP_CRITERION = 3 + CANNOT_APPLY_LABEL_TO_NEGATIVE_AD_GROUP_CRITERION = 4 + EXCEEDED_LABEL_LIMIT_PER_TYPE = 5 + INVALID_RESOURCE_FOR_MANAGER_LABEL = 6 + DUPLICATE_NAME = 7 + INVALID_LABEL_NAME = 8 + CANNOT_ATTACH_LABEL_TO_DRAFT = 9 + CANNOT_ATTACH_NON_MANAGER_LABEL_TO_CUSTOMER = 10 + + +class LabelStatusEnum(object): + class LabelStatus(enum.IntEnum): + """ + Possible statuses of a label. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + ENABLED (int): Label is enabled. + REMOVED (int): Label is removed. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + ENABLED = 2 + REMOVED = 3 + + +class LanguageCodeErrorEnum(object): + class LanguageCodeError(enum.IntEnum): + """ + Enum describing language code errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + LANGUAGE_CODE_NOT_FOUND (int): The input language code is not recognized. + INVALID_LANGUAGE_CODE (int): The language is not allowed to use. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + LANGUAGE_CODE_NOT_FOUND = 2 + INVALID_LANGUAGE_CODE = 3 + + +class ListOperationErrorEnum(object): + class ListOperationError(enum.IntEnum): + """ + Enum describing possible list operation errors. + + 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 = 0 + UNKNOWN = 1 + REQUIRED_FIELD_MISSING = 7 + DUPLICATE_VALUES = 8 + + +class ListingCustomAttributeIndexEnum(object): + class ListingCustomAttributeIndex(enum.IntEnum): + """ + The index of the listing custom attribute. + + 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 = 0 + UNKNOWN = 1 + INDEX0 = 7 + INDEX1 = 8 + INDEX2 = 9 + INDEX3 = 10 + INDEX4 = 11 + + +class ListingGroupTypeEnum(object): + class ListingGroupType(enum.IntEnum): + """ + The type of the listing group. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + SUBDIVISION (int): Subdivision of products along some listing dimension. These nodes + are not used by serving to target listing entries, but is purely + to define the structure of the tree. + UNIT (int): Listing group unit that defines a bid. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + SUBDIVISION = 2 + UNIT = 3 + + +class LocalPlaceholderFieldEnum(object): + class LocalPlaceholderField(enum.IntEnum): + """ + Possible values for Local placeholder fields. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + DEAL_ID (int): Data Type: STRING. Required. Unique ID. + DEAL_NAME (int): Data Type: STRING. Required. Main headline with local deal title to be + shown in dynamic ad. + SUBTITLE (int): Data Type: STRING. Local deal subtitle to be shown in dynamic ad. + DESCRIPTION (int): Data Type: STRING. Description of local deal to be shown in dynamic ad. + PRICE (int): Data Type: STRING. Price to be shown in the ad. Highly recommended for + dynamic ads. Example: "100.00 USD" + FORMATTED_PRICE (int): Data Type: STRING. Formatted price to be shown in the ad. + Example: "Starting at $100.00 USD", "$80 - $100" + SALE_PRICE (int): Data Type: STRING. Sale price to be shown in the ad. + Example: "80.00 USD" + FORMATTED_SALE_PRICE (int): Data Type: STRING. Formatted sale price to be shown in the ad. + Example: "On sale for $80.00", "$60 - $80" + IMAGE_URL (int): Data Type: URL. Image to be displayed in the ad. + ADDRESS (int): Data Type: STRING. Complete property address, including postal code. + CATEGORY (int): Data Type: STRING. Category of local deal used to group like items + together for recommendation engine. + CONTEXTUAL_KEYWORDS (int): Data Type: STRING\_LIST. Keywords used for product retrieval. + FINAL_URLS (int): Data Type: URL\_LIST. Required. Final URLs to be used in ad when using + Upgraded URLs; the more specific the better (e.g. the individual URL of + a specific local deal and its location). + FINAL_MOBILE_URLS (int): Data Type: URL\_LIST. Final mobile URLs for the ad when using Upgraded + URLs. + TRACKING_URL (int): Data Type: URL. Tracking template for the ad when using Upgraded URLs. + ANDROID_APP_LINK (int): Data Type: STRING. Android app link. Must be formatted as: + android-app://{package\_id}/{scheme}/{host\_path}. The components are + defined as follows: package\_id: app ID as specified in Google Play. + scheme: the scheme to pass to the application. Can be HTTP, or a custom + scheme. host\_path: identifies the specific content within your + application. + SIMILAR_DEAL_IDS (int): Data Type: STRING\_LIST. List of recommended local deal IDs to show + together with this item. + IOS_APP_LINK (int): Data Type: STRING. iOS app link. + IOS_APP_STORE_ID (int): Data Type: INT64. iOS app store ID. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + DEAL_ID = 2 + DEAL_NAME = 3 + SUBTITLE = 4 + DESCRIPTION = 5 + PRICE = 6 + FORMATTED_PRICE = 7 + SALE_PRICE = 8 + FORMATTED_SALE_PRICE = 9 + IMAGE_URL = 10 + ADDRESS = 11 + CATEGORY = 12 + CONTEXTUAL_KEYWORDS = 13 + FINAL_URLS = 14 + FINAL_MOBILE_URLS = 15 + TRACKING_URL = 16 + ANDROID_APP_LINK = 17 + SIMILAR_DEAL_IDS = 18 + IOS_APP_LINK = 19 + IOS_APP_STORE_ID = 20 + + +class LocationExtensionTargetingCriterionFieldEnum(object): + class LocationExtensionTargetingCriterionField(enum.IntEnum): + """ + Possible values for Location Extension Targeting criterion fields. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + ADDRESS_LINE_1 (int): Data Type: STRING. Line 1 of the business address. + ADDRESS_LINE_2 (int): Data Type: STRING. Line 2 of the business address. + CITY (int): Data Type: STRING. City of the business address. + PROVINCE (int): Data Type: STRING. Province of the business address. + POSTAL_CODE (int): Data Type: STRING. Postal code of the business address. + COUNTRY_CODE (int): Data Type: STRING. Country code of the business address. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + ADDRESS_LINE_1 = 2 + ADDRESS_LINE_2 = 3 + CITY = 4 + PROVINCE = 5 + POSTAL_CODE = 6 + COUNTRY_CODE = 7 + + +class LocationPlaceholderFieldEnum(object): + class LocationPlaceholderField(enum.IntEnum): + """ + Possible values for Location placeholder fields. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + BUSINESS_NAME (int): Data Type: STRING. The name of the business. + ADDRESS_LINE_1 (int): Data Type: STRING. Line 1 of the business address. + ADDRESS_LINE_2 (int): Data Type: STRING. Line 2 of the business address. + CITY (int): Data Type: STRING. City of the business address. + PROVINCE (int): Data Type: STRING. Province of the business address. + POSTAL_CODE (int): Data Type: STRING. Postal code of the business address. + COUNTRY_CODE (int): Data Type: STRING. Country code of the business address. + PHONE_NUMBER (int): Data Type: STRING. Phone number of the business. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + BUSINESS_NAME = 2 + ADDRESS_LINE_1 = 3 + ADDRESS_LINE_2 = 4 + CITY = 5 + PROVINCE = 6 + POSTAL_CODE = 7 + COUNTRY_CODE = 8 + PHONE_NUMBER = 9 + + +class ManagerLinkStatusEnum(object): + class ManagerLinkStatus(enum.IntEnum): + """ + Possible statuses of a link. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + ACTIVE (int): Indicates current in-effect relationship + INACTIVE (int): Indicates terminated relationship + PENDING (int): Indicates relationship has been requested by manager, but the client + hasn't accepted yet. + REFUSED (int): Relationship was requested by the manager, but the client has refused. + CANCELED (int): Indicates relationship has been requested by manager, but manager + canceled it. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + ACTIVE = 2 + INACTIVE = 3 + PENDING = 4 + REFUSED = 5 + CANCELED = 6 + + +class MatchingFunctionContextTypeEnum(object): + class MatchingFunctionContextType(enum.IntEnum): + """ + Possible context types for an operand in a matching function. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + FEED_ITEM_ID (int): Feed item id in the request context. + DEVICE_NAME (int): The device being used (possible values are 'Desktop' or 'Mobile'). + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + FEED_ITEM_ID = 2 + DEVICE_NAME = 3 + + +class MatchingFunctionOperatorEnum(object): + class MatchingFunctionOperator(enum.IntEnum): + """ + Possible operators in a matching function. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + IN (int): The IN operator. + IDENTITY (int): The IDENTITY operator. + EQUALS (int): The EQUALS operator + AND (int): Operator that takes two or more operands that are of type + FunctionOperand and checks that all the operands evaluate to true. For + functions related to ad formats, all the operands must be in + left\_operands. + CONTAINS_ANY (int): Operator that returns true if the elements in left\_operands contain any + of the elements in right\_operands. Otherwise, return false. The + right\_operands must contain at least 1 and no more than 3 + ConstantOperands. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + IN = 2 + IDENTITY = 3 + EQUALS = 4 + AND = 5 + CONTAINS_ANY = 6 + + +class MediaBundleErrorEnum(object): + class MediaBundleError(enum.IntEnum): + """ + Enum describing possible media bundle errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + BAD_REQUEST (int): There was a problem with the request. + DOUBLECLICK_BUNDLE_NOT_ALLOWED (int): HTML5 ads using DoubleClick Studio created ZIP files are not supported. + EXTERNAL_URL_NOT_ALLOWED (int): Cannot reference URL external to the media bundle. + FILE_TOO_LARGE (int): Media bundle file is too large. + GOOGLE_WEB_DESIGNER_ZIP_FILE_NOT_PUBLISHED (int): ZIP file from Google Web Designer is not published. + INVALID_INPUT (int): Input was invalid. + INVALID_MEDIA_BUNDLE (int): There was a problem with the media bundle. + INVALID_MEDIA_BUNDLE_ENTRY (int): There was a problem with one or more of the media bundle entries. + INVALID_MIME_TYPE (int): The media bundle contains a file with an unknown mime type + INVALID_PATH (int): The media bundle contain an invalid asset path. + INVALID_URL_REFERENCE (int): HTML5 ad is trying to reference an asset not in .ZIP file + MEDIA_DATA_TOO_LARGE (int): Media data is too large. + MISSING_PRIMARY_MEDIA_BUNDLE_ENTRY (int): The media bundle contains no primary entry. + SERVER_ERROR (int): There was an error on the server. + STORAGE_ERROR (int): The image could not be stored. + SWIFFY_BUNDLE_NOT_ALLOWED (int): Media bundle created with the Swiffy tool is not allowed. + TOO_MANY_FILES (int): The media bundle contains too many files. + UNEXPECTED_SIZE (int): The media bundle is not of legal dimensions. + UNSUPPORTED_GOOGLE_WEB_DESIGNER_ENVIRONMENT (int): Google Web Designer not created for "Google Ads" environment. + UNSUPPORTED_HTML5_FEATURE (int): Unsupported HTML5 feature in HTML5 asset. + URL_IN_MEDIA_BUNDLE_NOT_SSL_COMPLIANT (int): URL in HTML5 entry is not ssl compliant. + CUSTOM_EXIT_NOT_ALLOWED (int): Custom exits not allowed in HTML5 entry. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + BAD_REQUEST = 3 + DOUBLECLICK_BUNDLE_NOT_ALLOWED = 4 + EXTERNAL_URL_NOT_ALLOWED = 5 + FILE_TOO_LARGE = 6 + GOOGLE_WEB_DESIGNER_ZIP_FILE_NOT_PUBLISHED = 7 + INVALID_INPUT = 8 + INVALID_MEDIA_BUNDLE = 9 + INVALID_MEDIA_BUNDLE_ENTRY = 10 + INVALID_MIME_TYPE = 11 + INVALID_PATH = 12 + INVALID_URL_REFERENCE = 13 + MEDIA_DATA_TOO_LARGE = 14 + MISSING_PRIMARY_MEDIA_BUNDLE_ENTRY = 15 + SERVER_ERROR = 16 + STORAGE_ERROR = 17 + SWIFFY_BUNDLE_NOT_ALLOWED = 18 + TOO_MANY_FILES = 19 + UNEXPECTED_SIZE = 20 + UNSUPPORTED_GOOGLE_WEB_DESIGNER_ENVIRONMENT = 21 + UNSUPPORTED_HTML5_FEATURE = 22 + URL_IN_MEDIA_BUNDLE_NOT_SSL_COMPLIANT = 23 + CUSTOM_EXIT_NOT_ALLOWED = 24 + + +class MediaFileErrorEnum(object): + class MediaFileError(enum.IntEnum): + """ + Enum describing possible media file errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + CANNOT_CREATE_STANDARD_ICON (int): Cannot create a standard icon type. + CANNOT_SELECT_STANDARD_ICON_WITH_OTHER_TYPES (int): May only select Standard Icons alone. + CANNOT_SPECIFY_MEDIA_FILE_ID_AND_DATA (int): Image contains both a media file ID and data. + DUPLICATE_MEDIA (int): A media file with given type and reference ID already exists. + EMPTY_FIELD (int): A required field was not specified or is an empty string. + RESOURCE_REFERENCED_IN_MULTIPLE_OPS (int): A media file may only be modified once per call. + FIELD_NOT_SUPPORTED_FOR_MEDIA_SUB_TYPE (int): Field is not supported for the media sub type. + INVALID_MEDIA_FILE_ID (int): The media file ID is invalid. + INVALID_MEDIA_SUB_TYPE (int): The media subtype is invalid. + INVALID_MEDIA_FILE_TYPE (int): The media file type is invalid. + INVALID_MIME_TYPE (int): The mimetype is invalid. + INVALID_REFERENCE_ID (int): The media reference ID is invalid. + INVALID_YOU_TUBE_ID (int): The YouTube video ID is invalid. + MEDIA_FILE_FAILED_TRANSCODING (int): Media file has failed transcoding + MEDIA_NOT_TRANSCODED (int): Media file has not been transcoded. + MEDIA_TYPE_DOES_NOT_MATCH_MEDIA_FILE_TYPE (int): The media type does not match the actual media file's type. + NO_FIELDS_SPECIFIED (int): None of the fields have been specified. + NULL_REFERENCE_ID_AND_MEDIA_ID (int): One of reference ID or media file ID must be specified. + TOO_LONG (int): The string has too many characters. + UNSUPPORTED_TYPE (int): The specified type is not supported. + YOU_TUBE_SERVICE_UNAVAILABLE (int): YouTube is unavailable for requesting video data. + YOU_TUBE_VIDEO_HAS_NON_POSITIVE_DURATION (int): The YouTube video has a non positive duration. + YOU_TUBE_VIDEO_NOT_FOUND (int): The YouTube video ID is syntactically valid but the video was not found. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + CANNOT_CREATE_STANDARD_ICON = 2 + CANNOT_SELECT_STANDARD_ICON_WITH_OTHER_TYPES = 3 + CANNOT_SPECIFY_MEDIA_FILE_ID_AND_DATA = 4 + DUPLICATE_MEDIA = 5 + EMPTY_FIELD = 6 + RESOURCE_REFERENCED_IN_MULTIPLE_OPS = 7 + FIELD_NOT_SUPPORTED_FOR_MEDIA_SUB_TYPE = 8 + INVALID_MEDIA_FILE_ID = 9 + INVALID_MEDIA_SUB_TYPE = 10 + INVALID_MEDIA_FILE_TYPE = 11 + INVALID_MIME_TYPE = 12 + INVALID_REFERENCE_ID = 13 + INVALID_YOU_TUBE_ID = 14 + MEDIA_FILE_FAILED_TRANSCODING = 15 + MEDIA_NOT_TRANSCODED = 16 + MEDIA_TYPE_DOES_NOT_MATCH_MEDIA_FILE_TYPE = 17 + NO_FIELDS_SPECIFIED = 18 + NULL_REFERENCE_ID_AND_MEDIA_ID = 19 + TOO_LONG = 20 + UNSUPPORTED_TYPE = 21 + YOU_TUBE_SERVICE_UNAVAILABLE = 22 + YOU_TUBE_VIDEO_HAS_NON_POSITIVE_DURATION = 23 + YOU_TUBE_VIDEO_NOT_FOUND = 24 + + +class MediaTypeEnum(object): + class MediaType(enum.IntEnum): + """ + The type of media. + + Attributes: + UNSPECIFIED (int): The media type has not been specified. + UNKNOWN (int): The received value is not known in this version. + + This is a response-only value. + IMAGE (int): Static image, used for image ad. + ICON (int): Small image, used for map ad. + MEDIA_BUNDLE (int): ZIP file, used in fields of template ads. + AUDIO (int): Audio file. + VIDEO (int): Video file. + DYNAMIC_IMAGE (int): Animated image, such as animated GIF. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + IMAGE = 2 + ICON = 3 + MEDIA_BUNDLE = 4 + AUDIO = 5 + VIDEO = 6 + DYNAMIC_IMAGE = 7 + + +class MerchantCenterLinkStatusEnum(object): + class MerchantCenterLinkStatus(enum.IntEnum): + """ + Describes the possible statuses for a link between a Google Ads customer + and a Google Merchant Center 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. + PENDING (int): The link has no effect. It was proposed by the Merchant Center Account + owner and hasn't been confirmed by the customer. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + ENABLED = 2 + PENDING = 3 + + +class MessagePlaceholderFieldEnum(object): + class MessagePlaceholderField(enum.IntEnum): + """ + Possible values for Message placeholder fields. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + BUSINESS_NAME (int): Data Type: STRING. The name of your business. + COUNTRY_CODE (int): Data Type: STRING. Country code of phone number. + PHONE_NUMBER (int): Data Type: STRING. A phone number that's capable of sending and receiving + text messages. + MESSAGE_EXTENSION_TEXT (int): Data Type: STRING. The text that will go in your click-to-message ad. + MESSAGE_TEXT (int): Data Type: STRING. The message text automatically shows in people's + messaging apps when they tap to send you a message. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + BUSINESS_NAME = 2 + COUNTRY_CODE = 3 + PHONE_NUMBER = 4 + MESSAGE_EXTENSION_TEXT = 5 + MESSAGE_TEXT = 6 + + +class MimeTypeEnum(object): + class MimeType(enum.IntEnum): + """ + The mime type + + Attributes: + UNSPECIFIED (int): The mime type has not been specified. + UNKNOWN (int): The received value is not known in this version. + + This is a response-only value. + IMAGE_JPEG (int): MIME type of image/jpeg. + IMAGE_GIF (int): MIME type of image/gif. + IMAGE_PNG (int): MIME type of image/png. + FLASH (int): MIME type of application/x-shockwave-flash. + TEXT_HTML (int): MIME type of text/html. + PDF (int): MIME type of application/pdf. + MSWORD (int): MIME type of application/msword. + MSEXCEL (int): MIME type of application/vnd.ms-excel. + RTF (int): MIME type of application/rtf. + AUDIO_WAV (int): MIME type of audio/wav. + AUDIO_MP3 (int): MIME type of audio/mp3. + HTML5_AD_ZIP (int): MIME type of application/x-html5-ad-zip. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + IMAGE_JPEG = 2 + IMAGE_GIF = 3 + IMAGE_PNG = 4 + FLASH = 5 + TEXT_HTML = 6 + PDF = 7 + MSWORD = 8 + MSEXCEL = 9 + RTF = 10 + AUDIO_WAV = 11 + AUDIO_MP3 = 12 + HTML5_AD_ZIP = 13 + + +class MinuteOfHourEnum(object): + class MinuteOfHour(enum.IntEnum): + """ + Enumerates of quarter-hours. E.g. "FIFTEEN" + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): The value is unknown in this version. + ZERO (int): Zero minutes past the hour. + FIFTEEN (int): Fifteen minutes past the hour. + THIRTY (int): Thirty minutes past the hour. + FORTY_FIVE (int): Forty-five minutes past the hour. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + ZERO = 2 + FIFTEEN = 3 + THIRTY = 4 + FORTY_FIVE = 5 + + +class MobileDeviceTypeEnum(object): + class MobileDeviceType(enum.IntEnum): + """ + The type of mobile device. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + MOBILE (int): Mobile phones. + TABLET (int): Tablets. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + MOBILE = 2 + TABLET = 3 + + +class MonthOfYearEnum(object): + class MonthOfYear(enum.IntEnum): + """ + Enumerates months of the year, e.g., "January". + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): The value is unknown in this version. + JANUARY (int): January. + FEBRUARY (int): February. + MARCH (int): March. + APRIL (int): April. + MAY (int): May. + JUNE (int): June. + JULY (int): July. + AUGUST (int): August. + SEPTEMBER (int): September. + OCTOBER (int): October. + NOVEMBER (int): November. + DECEMBER (int): December. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + JANUARY = 2 + FEBRUARY = 3 + MARCH = 4 + APRIL = 5 + MAY = 6 + JUNE = 7 + JULY = 8 + AUGUST = 9 + SEPTEMBER = 10 + OCTOBER = 11 + NOVEMBER = 12 + DECEMBER = 13 + + +class MultiplierErrorEnum(object): + class MultiplierError(enum.IntEnum): + """ + Enum describing possible multiplier errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + MULTIPLIER_TOO_HIGH (int): Multiplier value is too high + MULTIPLIER_TOO_LOW (int): Multiplier value is too low + TOO_MANY_FRACTIONAL_DIGITS (int): Too many fractional digits + MULTIPLIER_NOT_ALLOWED_FOR_BIDDING_STRATEGY (int): A multiplier cannot be set for this bidding strategy + MULTIPLIER_NOT_ALLOWED_WHEN_BASE_BID_IS_MISSING (int): A multiplier cannot be set when there is no base bid (e.g., content max + cpc) + NO_MULTIPLIER_SPECIFIED (int): A bid multiplier must be specified + MULTIPLIER_CAUSES_BID_TO_EXCEED_DAILY_BUDGET (int): Multiplier causes bid to exceed daily budget + MULTIPLIER_CAUSES_BID_TO_EXCEED_MONTHLY_BUDGET (int): Multiplier causes bid to exceed monthly budget + MULTIPLIER_CAUSES_BID_TO_EXCEED_CUSTOM_BUDGET (int): Multiplier causes bid to exceed custom budget + MULTIPLIER_CAUSES_BID_TO_EXCEED_MAX_ALLOWED_BID (int): Multiplier causes bid to exceed maximum allowed bid + BID_LESS_THAN_MIN_ALLOWED_BID_WITH_MULTIPLIER (int): Multiplier causes bid to become less than the minimum bid allowed + MULTIPLIER_AND_BIDDING_STRATEGY_TYPE_MISMATCH (int): Multiplier type (cpc vs. cpm) needs to match campaign's bidding strategy + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + MULTIPLIER_TOO_HIGH = 2 + MULTIPLIER_TOO_LOW = 3 + TOO_MANY_FRACTIONAL_DIGITS = 4 + MULTIPLIER_NOT_ALLOWED_FOR_BIDDING_STRATEGY = 5 + MULTIPLIER_NOT_ALLOWED_WHEN_BASE_BID_IS_MISSING = 6 + NO_MULTIPLIER_SPECIFIED = 7 + MULTIPLIER_CAUSES_BID_TO_EXCEED_DAILY_BUDGET = 8 + MULTIPLIER_CAUSES_BID_TO_EXCEED_MONTHLY_BUDGET = 9 + MULTIPLIER_CAUSES_BID_TO_EXCEED_CUSTOM_BUDGET = 10 + 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 + + +class MutateErrorEnum(object): + class MutateError(enum.IntEnum): + """ + Enum describing possible mutate errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + RESOURCE_NOT_FOUND (int): Requested resource was not found. + ID_EXISTS_IN_MULTIPLE_MUTATES (int): Cannot mutate the same resource twice in one request. + INCONSISTENT_FIELD_VALUES (int): The field's contents don't match another field that represents the same + data. + 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. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + RESOURCE_NOT_FOUND = 3 + ID_EXISTS_IN_MULTIPLE_MUTATES = 7 + INCONSISTENT_FIELD_VALUES = 8 + MUTATE_NOT_ALLOWED = 9 + RESOURCE_NOT_IN_GOOGLE_ADS = 10 + + +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 NegativeGeoTargetType(enum.IntEnum): + """ + The possible negative geo target types. + + 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 either their + Area of Interest (AOI) or their Location of Presence (LOP) matches the + geo target. + LOCATION_OF_PRESENCE (int): Specifies that a user is excluded from seeing the ad + only if their Location of Presence (LOP) matches the geo target. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + DONT_CARE = 2 + LOCATION_OF_PRESENCE = 3 + + +class NewResourceCreationErrorEnum(object): + class NewResourceCreationError(enum.IntEnum): + """ + Enum describing possible new resource creation errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + CANNOT_SET_ID_FOR_CREATE (int): Do not set the id field while creating new resources. + DUPLICATE_TEMP_IDS (int): Creating more than one resource with the same temp ID is not allowed. + TEMP_ID_RESOURCE_HAD_ERRORS (int): Parent resource with specified temp ID failed validation, so no + validation will be done for this child resource. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + CANNOT_SET_ID_FOR_CREATE = 2 + DUPLICATE_TEMP_IDS = 3 + TEMP_ID_RESOURCE_HAD_ERRORS = 4 + + +class NotEmptyErrorEnum(object): + class NotEmptyError(enum.IntEnum): + """ + Enum describing possible not empty errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + EMPTY_LIST (int): Empty list. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + EMPTY_LIST = 2 + + +class NullErrorEnum(object): + class NullError(enum.IntEnum): + """ + Enum describing possible null errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + NULL_CONTENT (int): Specified list/container must not contain any null elements + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + NULL_CONTENT = 2 + + +class OperatingSystemVersionOperatorTypeEnum(object): + class OperatingSystemVersionOperatorType(enum.IntEnum): + """ + The type of operating system version. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + EQUALS_TO (int): Equals to the specified version. + GREATER_THAN_EQUALS_TO (int): Greater than or equals to the specified version. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + EQUALS_TO = 2 + GREATER_THAN_EQUALS_TO = 4 + + +class OperationAccessDeniedErrorEnum(object): + class OperationAccessDeniedError(enum.IntEnum): + """ + Enum describing possible operation access denied errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + ACTION_NOT_PERMITTED (int): Unauthorized invocation of a service's method (get, mutate, etc.) + CREATE_OPERATION_NOT_PERMITTED (int): Unauthorized CREATE operation in invoking a service's mutate method. + REMOVE_OPERATION_NOT_PERMITTED (int): Unauthorized REMOVE operation in invoking a service's mutate method. + UPDATE_OPERATION_NOT_PERMITTED (int): Unauthorized UPDATE operation in invoking a service's mutate method. + MUTATE_ACTION_NOT_PERMITTED_FOR_CLIENT (int): A mutate action is not allowed on this campaign, from this client. + OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE (int): This operation is not permitted on this campaign type + CREATE_AS_REMOVED_NOT_PERMITTED (int): A CREATE operation may not set status to REMOVED. + OPERATION_NOT_PERMITTED_FOR_REMOVED_RESOURCE (int): This operation is not allowed because the campaign or adgroup is removed. + OPERATION_NOT_PERMITTED_FOR_AD_GROUP_TYPE (int): This operation is not permitted on this ad group type. + MUTATE_NOT_PERMITTED_FOR_CUSTOMER (int): The mutate is not allowed for this customer. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + ACTION_NOT_PERMITTED = 2 + CREATE_OPERATION_NOT_PERMITTED = 3 + REMOVE_OPERATION_NOT_PERMITTED = 4 + UPDATE_OPERATION_NOT_PERMITTED = 5 + MUTATE_ACTION_NOT_PERMITTED_FOR_CLIENT = 6 + OPERATION_NOT_PERMITTED_FOR_CAMPAIGN_TYPE = 7 + CREATE_AS_REMOVED_NOT_PERMITTED = 8 + OPERATION_NOT_PERMITTED_FOR_REMOVED_RESOURCE = 9 + OPERATION_NOT_PERMITTED_FOR_AD_GROUP_TYPE = 10 + MUTATE_NOT_PERMITTED_FOR_CUSTOMER = 11 + + +class OperatorErrorEnum(object): + class OperatorError(enum.IntEnum): + """ + Enum describing possible operator errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + OPERATOR_NOT_SUPPORTED (int): Operator not supported. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + OPERATOR_NOT_SUPPORTED = 2 + + +class PageOnePromotedStrategyGoalEnum(object): + class PageOnePromotedStrategyGoal(enum.IntEnum): + """ + Enum describing possible strategy goals. + + 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. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + FIRST_PAGE = 2 + FIRST_PAGE_PROMOTED = 3 + + +class ParentalStatusTypeEnum(object): + class ParentalStatusType(enum.IntEnum): + """ + The type of parental statuses (e.g. not a parent). + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + PARENT (int): Parent. + NOT_A_PARENT (int): Not a parent. + UNDETERMINED (int): Undetermined parental status. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + PARENT = 300 + NOT_A_PARENT = 301 + UNDETERMINED = 302 + + +class PartialFailureErrorEnum(object): + class PartialFailureError(enum.IntEnum): + """ + Enum describing possible partial failure errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + PARTIAL_FAILURE_MODE_REQUIRED (int): The partial failure field was false in the request. + This method requires this field be set to true. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + PARTIAL_FAILURE_MODE_REQUIRED = 2 + + +class PlaceholderTypeEnum(object): + class PlaceholderType(enum.IntEnum): + """ + Possible placeholder types for a feed mapping. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + SITELINK (int): Lets you show links in your ad to pages from your website, including the + main landing page. + CALL (int): Lets you attach a phone number to an ad, allowing customers to call + directly from the ad. + APP (int): Lets you provide users with a link that points to a mobile app in + addition to a website. + LOCATION (int): Lets you show locations of businesses from your Google My Business + account in your ad. This helps people find your locations by showing your + ads with your address, a map to your location, or the distance to your + business. This extension type is useful to draw customers to your + brick-and-mortar location. + AFFILIATE_LOCATION (int): If you sell your product through retail chains, affiliate location + extensions let you show nearby stores that carry your products. + CALLOUT (int): Lets you include additional text with your search ads that provide + detailed information about your business, including products and services + you offer. Callouts appear in ads at the top and bottom of Google search + results. + STRUCTURED_SNIPPET (int): Lets you add more info to your ad, specific to some predefined categories + such as types, brands, styles, etc. A minimum of 3 text (SNIPPETS) values + are required. + MESSAGE (int): Allows users to see your ad, click an icon, and contact you directly by + text message. With one tap on your ad, people can contact you to book an + appointment, get a quote, ask for information, or request a service. + PRICE (int): Lets you display prices for a list of items along with your ads. A price + feed is composed of three to eight price table rows. + PROMOTION (int): Allows you to highlight sales and other promotions that let users see how + they can save by buying now. + AD_CUSTOMIZER (int): Lets you dynamically inject custom data into the title and description + of your ads. + DYNAMIC_EDUCATION (int): Indicates that this feed is for education dynamic remarketing. + DYNAMIC_FLIGHT (int): Indicates that this feed is for flight dynamic remarketing. + DYNAMIC_CUSTOM (int): Indicates that this feed is for a custom dynamic remarketing type. Use + this only if the other business types don't apply to your products or + services. + DYNAMIC_HOTEL (int): Indicates that this feed is for hotels and rentals dynamic remarketing. + DYNAMIC_REAL_ESTATE (int): Indicates that this feed is for real estate dynamic remarketing. + DYNAMIC_TRAVEL (int): Indicates that this feed is for travel dynamic remarketing. + DYNAMIC_LOCAL (int): Indicates that this feed is for local deals dynamic remarketing. + DYNAMIC_JOB (int): Indicates that this feed is for job dynamic remarketing. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + SITELINK = 2 + CALL = 3 + APP = 4 + LOCATION = 5 + AFFILIATE_LOCATION = 6 + CALLOUT = 7 + STRUCTURED_SNIPPET = 8 + MESSAGE = 9 + PRICE = 10 + PROMOTION = 11 + AD_CUSTOMIZER = 12 + DYNAMIC_EDUCATION = 13 + DYNAMIC_FLIGHT = 14 + DYNAMIC_CUSTOM = 15 + DYNAMIC_HOTEL = 16 + DYNAMIC_REAL_ESTATE = 17 + DYNAMIC_TRAVEL = 18 + DYNAMIC_LOCAL = 19 + DYNAMIC_JOB = 20 + + +class PlacementTypeEnum(object): + class PlacementType(enum.IntEnum): + """ + Possible placement types for a feed mapping. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + WEBSITE (int): Websites(e.g. 'www.flowers4sale.com'). + MOBILE_APP_CATEGORY (int): Mobile application categories(e.g. 'Games'). + MOBILE_APPLICATION (int): mobile applications(e.g. 'mobileapp::2-com.whatsthewordanswers'). + YOUTUBE_VIDEO (int): YouTube videos(e.g. 'youtube.com/video/wtLJPvx7-ys'). + YOUTUBE_CHANNEL (int): YouTube channels(e.g. 'youtube.com::L8ZULXASCc1I\_oaOT0NaOQ'). + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + WEBSITE = 2 + MOBILE_APP_CATEGORY = 3 + MOBILE_APPLICATION = 4 + YOUTUBE_VIDEO = 5 + YOUTUBE_CHANNEL = 6 + + +class PolicyApprovalStatusEnum(object): + class PolicyApprovalStatus(enum.IntEnum): + """ + The possible policy approval statuses. When there are several approval + statuses available the most severe one will be used. The order of + severity is DISAPPROVED, AREA\_OF\_INTEREST\_ONLY, APPROVED\_LIMITED and + APPROVED. + + 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. + DISAPPROVED (int): Will not serve. + APPROVED_LIMITED (int): Serves with restrictions. + APPROVED (int): Serves without restrictions. + AREA_OF_INTEREST_ONLY (int): Will not serve in targeted countries, but may serve for users who are + searching for information about the targeted countries. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + DISAPPROVED = 2 + APPROVED_LIMITED = 3 + APPROVED = 4 + AREA_OF_INTEREST_ONLY = 5 + + +class PolicyFindingErrorEnum(object): + class PolicyFindingError(enum.IntEnum): + """ + Enum describing possible policy finding errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + POLICY_FINDING (int): The resource has been disapproved since the policy summary includes + policy topics of type PROHIBITED. + POLICY_TOPIC_NOT_FOUND (int): The given policy topic does not exist. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + POLICY_FINDING = 2 + POLICY_TOPIC_NOT_FOUND = 3 + + +class PolicyReviewStatusEnum(object): + class PolicyReviewStatus(enum.IntEnum): + """ + The possible policy review statuses. + + 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. + REVIEW_IN_PROGRESS (int): Currently under review. + 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. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + REVIEW_IN_PROGRESS = 2 + REVIEWED = 3 + UNDER_APPEAL = 4 + + +class PolicyTopicEntryTypeEnum(object): + class PolicyTopicEntryType(enum.IntEnum): + """ + The possible policy topic entry 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. + PROHIBITED (int): The resource will not be served. + LIMITED (int): The resource will not be served under some circumstances. + DESCRIPTIVE (int): May be of interest, but does not limit how the resource is served. + BROADENING (int): Could increase coverage beyond normal. + AREA_OF_INTEREST_ONLY (int): Constrained for all targeted countries, but may serve in other countries + through area of interest. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + PROHIBITED = 2 + LIMITED = 4 + DESCRIPTIVE = 5 + BROADENING = 6 + AREA_OF_INTEREST_ONLY = 7 + + +class PolicyTopicEvidenceDestinationMismatchUrlTypeEnum(object): + class PolicyTopicEvidenceDestinationMismatchUrlType(enum.IntEnum): + """ + The possible policy topic evidence destination mismatch url 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. + DISPLAY_URL (int): The display url. + FINAL_URL (int): The final url. + FINAL_MOBILE_URL (int): The final mobile url. + TRACKING_URL (int): The tracking url template, with substituted desktop url. + MOBILE_TRACKING_URL (int): The tracking url template, with substituted mobile url. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + DISPLAY_URL = 2 + FINAL_URL = 3 + FINAL_MOBILE_URL = 4 + TRACKING_URL = 5 + MOBILE_TRACKING_URL = 6 + + +class PolicyValidationParameterErrorEnum(object): + class PolicyValidationParameterError(enum.IntEnum): + """ + Enum describing possible policy validation parameter errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + UNSUPPORTED_AD_TYPE_FOR_IGNORABLE_POLICY_TOPICS (int): Ignorable policy topics are not supported for the ad type. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + UNSUPPORTED_AD_TYPE_FOR_IGNORABLE_POLICY_TOPICS = 2 + + +class PolicyViolationErrorEnum(object): + class PolicyViolationError(enum.IntEnum): + """ + Enum describing possible policy violation errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + POLICY_ERROR (int): A policy was violated. See PolicyViolationDetails for more detail. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + POLICY_ERROR = 2 + + +class PositiveGeoTargetTypeEnum(object): + class PositiveGeoTargetType(enum.IntEnum): + """ + The possible positive geo target types. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): The value is unknown in this version. + DONT_CARE (int): Specifies that either Area of Interest (AOI) or + Location of Presence (LOP) may trigger the ad. + AREA_OF_INTEREST (int): Specifies that the ad is triggered only if the user's Area of Interest + (AOI) matches. + LOCATION_OF_PRESENCE (int): Specifies that the ad is triggered only if the user's + Location of Presence (LOP) matches. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + DONT_CARE = 2 + AREA_OF_INTEREST = 3 + LOCATION_OF_PRESENCE = 4 + + +class PreferredContentTypeEnum(object): + class PreferredContentType(enum.IntEnum): + """ + Enumerates preferred content criterion type. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): The value is unknown in this version. + YOUTUBE_TOP_CONTENT (int): Represents top content on YouTube. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + YOUTUBE_TOP_CONTENT = 400 + + +class PriceExtensionPriceQualifierEnum(object): + class PriceExtensionPriceQualifier(enum.IntEnum): + """ + Enums of price extension price qualifier. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + FROM (int): 'From' qualifier for the price. + UP_TO (int): 'Up to' qualifier for the price. + AVERAGE (int): 'Average' qualifier for the price. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + FROM = 2 + UP_TO = 3 + AVERAGE = 4 + + +class PriceExtensionPriceUnitEnum(object): + class PriceExtensionPriceUnit(enum.IntEnum): + """ + Price extension price unit. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + PER_HOUR (int): Per hour. + PER_DAY (int): Per day. + PER_WEEK (int): Per week. + PER_MONTH (int): Per month. + PER_YEAR (int): Per year. + PER_NIGHT (int): Per night. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + PER_HOUR = 2 + PER_DAY = 3 + PER_WEEK = 4 + PER_MONTH = 5 + PER_YEAR = 6 + PER_NIGHT = 7 + + +class PriceExtensionTypeEnum(object): + class PriceExtensionType(enum.IntEnum): + """ + Price extension type. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + BRANDS (int): The type for showing a list of brands. + EVENTS (int): The type for showing a list of events. + LOCATIONS (int): The type for showing locations relevant to your business. + NEIGHBORHOODS (int): The type for showing sub-regions or districts within a city or region. + PRODUCT_CATEGORIES (int): The type for showing a collection of product categories. + PRODUCT_TIERS (int): The type for showing a collection of related product tiers. + SERVICES (int): The type for showing a collection of services offered by your business. + SERVICE_CATEGORIES (int): The type for showing a collection of service categories. + SERVICE_TIERS (int): The type for showing a collection of related service tiers. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + BRANDS = 2 + EVENTS = 3 + LOCATIONS = 4 + NEIGHBORHOODS = 5 + PRODUCT_CATEGORIES = 6 + PRODUCT_TIERS = 7 + SERVICES = 8 + SERVICE_CATEGORIES = 9 + SERVICE_TIERS = 10 + + +class PricePlaceholderFieldEnum(object): + class PricePlaceholderField(enum.IntEnum): + """ + Possible values for Price placeholder fields. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + TYPE (int): Data Type: STRING. The type of your price feed. Must match one of the + predefined price feed type exactly. + PRICE_QUALIFIER (int): Data Type: STRING. The qualifier of each price. Must match one of the + predefined price qualifiers exactly. + TRACKING_TEMPLATE (int): Data Type: URL. Tracking template for the price feed when using Upgraded + URLs. + LANGUAGE (int): Data Type: STRING. Language of the price feed. Must match one of the + available available locale codes exactly. + FINAL_URL_SUFFIX (int): Data Type: STRING. Final URL suffix for the price feed when using + parallel tracking. + ITEM_1_HEADER (int): Data Type: STRING. The header of item 1 of the table. + ITEM_1_DESCRIPTION (int): Data Type: STRING. The description of item 1 of the table. + ITEM_1_PRICE (int): Data Type: MONEY. The price (money with currency) of item 1 of the table, + e.g., 30 USD. The currency must match one of the available currencies. + ITEM_1_UNIT (int): Data Type: STRING. The price unit of item 1 of the table. Must match one + of the predefined price units. + ITEM_1_FINAL_URLS (int): Data Type: URL\_LIST. The final URLs of item 1 of the table when using + Upgraded URLs. + ITEM_1_FINAL_MOBILE_URLS (int): Data Type: URL\_LIST. The final mobile URLs of item 1 of the table when + using Upgraded URLs. + ITEM_2_HEADER (int): Data Type: STRING. The header of item 2 of the table. + ITEM_2_DESCRIPTION (int): Data Type: STRING. The description of item 2 of the table. + ITEM_2_PRICE (int): Data Type: MONEY. The price (money with currency) of item 2 of the table, + e.g., 30 USD. The currency must match one of the available currencies. + ITEM_2_UNIT (int): Data Type: STRING. The price unit of item 2 of the table. Must match one + of the predefined price units. + ITEM_2_FINAL_URLS (int): Data Type: URL\_LIST. The final URLs of item 2 of the table when using + Upgraded URLs. + ITEM_2_FINAL_MOBILE_URLS (int): Data Type: URL\_LIST. The final mobile URLs of item 2 of the table when + using Upgraded URLs. + ITEM_3_HEADER (int): Data Type: STRING. The header of item 3 of the table. + ITEM_3_DESCRIPTION (int): Data Type: STRING. The description of item 3 of the table. + ITEM_3_PRICE (int): Data Type: MONEY. The price (money with currency) of item 3 of the table, + e.g., 30 USD. The currency must match one of the available currencies. + ITEM_3_UNIT (int): Data Type: STRING. The price unit of item 3 of the table. Must match one + of the predefined price units. + ITEM_3_FINAL_URLS (int): Data Type: URL\_LIST. The final URLs of item 3 of the table when using + Upgraded URLs. + ITEM_3_FINAL_MOBILE_URLS (int): Data Type: URL\_LIST. The final mobile URLs of item 3 of the table when + using Upgraded URLs. + ITEM_4_HEADER (int): Data Type: STRING. The header of item 4 of the table. + ITEM_4_DESCRIPTION (int): Data Type: STRING. The description of item 4 of the table. + ITEM_4_PRICE (int): Data Type: MONEY. The price (money with currency) of item 4 of the table, + e.g., 30 USD. The currency must match one of the available currencies. + ITEM_4_UNIT (int): Data Type: STRING. The price unit of item 4 of the table. Must match one + of the predefined price units. + ITEM_4_FINAL_URLS (int): Data Type: URL\_LIST. The final URLs of item 4 of the table when using + Upgraded URLs. + ITEM_4_FINAL_MOBILE_URLS (int): Data Type: URL\_LIST. The final mobile URLs of item 4 of the table when + using Upgraded URLs. + ITEM_5_HEADER (int): Data Type: STRING. The header of item 5 of the table. + ITEM_5_DESCRIPTION (int): Data Type: STRING. The description of item 5 of the table. + ITEM_5_PRICE (int): Data Type: MONEY. The price (money with currency) of item 5 of the table, + e.g., 30 USD. The currency must match one of the available currencies. + ITEM_5_UNIT (int): Data Type: STRING. The price unit of item 5 of the table. Must match one + of the predefined price units. + ITEM_5_FINAL_URLS (int): Data Type: URL\_LIST. The final URLs of item 5 of the table when using + Upgraded URLs. + ITEM_5_FINAL_MOBILE_URLS (int): Data Type: URL\_LIST. The final mobile URLs of item 5 of the table when + using Upgraded URLs. + ITEM_6_HEADER (int): Data Type: STRING. The header of item 6 of the table. + ITEM_6_DESCRIPTION (int): Data Type: STRING. The description of item 6 of the table. + ITEM_6_PRICE (int): Data Type: MONEY. The price (money with currency) of item 6 of the table, + e.g., 30 USD. The currency must match one of the available currencies. + ITEM_6_UNIT (int): Data Type: STRING. The price unit of item 6 of the table. Must match one + of the predefined price units. + ITEM_6_FINAL_URLS (int): Data Type: URL\_LIST. The final URLs of item 6 of the table when using + Upgraded URLs. + ITEM_6_FINAL_MOBILE_URLS (int): Data Type: URL\_LIST. The final mobile URLs of item 6 of the table when + using Upgraded URLs. + ITEM_7_HEADER (int): Data Type: STRING. The header of item 7 of the table. + ITEM_7_DESCRIPTION (int): Data Type: STRING. The description of item 7 of the table. + ITEM_7_PRICE (int): Data Type: MONEY. The price (money with currency) of item 7 of the table, + e.g., 30 USD. The currency must match one of the available currencies. + ITEM_7_UNIT (int): Data Type: STRING. The price unit of item 7 of the table. Must match one + of the predefined price units. + ITEM_7_FINAL_URLS (int): Data Type: URL\_LIST. The final URLs of item 7 of the table when using + Upgraded URLs. + ITEM_7_FINAL_MOBILE_URLS (int): Data Type: URL\_LIST. The final mobile URLs of item 7 of the table when + using Upgraded URLs. + ITEM_8_HEADER (int): Data Type: STRING. The header of item 8 of the table. + ITEM_8_DESCRIPTION (int): Data Type: STRING. The description of item 8 of the table. + ITEM_8_PRICE (int): Data Type: MONEY. The price (money with currency) of item 8 of the table, + e.g., 30 USD. The currency must match one of the available currencies. + ITEM_8_UNIT (int): Data Type: STRING. The price unit of item 8 of the table. Must match one + of the predefined price units. + ITEM_8_FINAL_URLS (int): Data Type: URL\_LIST. The final URLs of item 8 of the table when using + Upgraded URLs. + ITEM_8_FINAL_MOBILE_URLS (int): Data Type: URL\_LIST. The final mobile URLs of item 8 of the table when + using Upgraded URLs. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + TYPE = 2 + PRICE_QUALIFIER = 3 + TRACKING_TEMPLATE = 4 + LANGUAGE = 5 + FINAL_URL_SUFFIX = 6 + ITEM_1_HEADER = 100 + ITEM_1_DESCRIPTION = 101 + ITEM_1_PRICE = 102 + ITEM_1_UNIT = 103 + ITEM_1_FINAL_URLS = 104 + ITEM_1_FINAL_MOBILE_URLS = 105 + ITEM_2_HEADER = 200 + ITEM_2_DESCRIPTION = 201 + ITEM_2_PRICE = 202 + ITEM_2_UNIT = 203 + ITEM_2_FINAL_URLS = 204 + ITEM_2_FINAL_MOBILE_URLS = 205 + ITEM_3_HEADER = 300 + ITEM_3_DESCRIPTION = 301 + ITEM_3_PRICE = 302 + ITEM_3_UNIT = 303 + ITEM_3_FINAL_URLS = 304 + ITEM_3_FINAL_MOBILE_URLS = 305 + ITEM_4_HEADER = 400 + ITEM_4_DESCRIPTION = 401 + ITEM_4_PRICE = 402 + ITEM_4_UNIT = 403 + ITEM_4_FINAL_URLS = 404 + ITEM_4_FINAL_MOBILE_URLS = 405 + ITEM_5_HEADER = 500 + ITEM_5_DESCRIPTION = 501 + ITEM_5_PRICE = 502 + ITEM_5_UNIT = 503 + ITEM_5_FINAL_URLS = 504 + ITEM_5_FINAL_MOBILE_URLS = 505 + ITEM_6_HEADER = 600 + ITEM_6_DESCRIPTION = 601 + ITEM_6_PRICE = 602 + ITEM_6_UNIT = 603 + ITEM_6_FINAL_URLS = 604 + ITEM_6_FINAL_MOBILE_URLS = 605 + ITEM_7_HEADER = 700 + ITEM_7_DESCRIPTION = 701 + ITEM_7_PRICE = 702 + ITEM_7_UNIT = 703 + ITEM_7_FINAL_URLS = 704 + ITEM_7_FINAL_MOBILE_URLS = 705 + ITEM_8_HEADER = 800 + ITEM_8_DESCRIPTION = 801 + ITEM_8_PRICE = 802 + ITEM_8_UNIT = 803 + ITEM_8_FINAL_URLS = 804 + ITEM_8_FINAL_MOBILE_URLS = 805 + + +class ProductBiddingCategoryLevelEnum(object): + class ProductBiddingCategoryLevel(enum.IntEnum): + """ + Enum describing the level of the product bidding category. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + LEVEL1 (int): Level 1. + LEVEL2 (int): Level 2. + LEVEL3 (int): Level 3. + LEVEL4 (int): Level 4. + LEVEL5 (int): Level 5. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + LEVEL1 = 2 + LEVEL2 = 3 + LEVEL3 = 4 + LEVEL4 = 5 + LEVEL5 = 6 + + +class ProductBiddingCategoryStatusEnum(object): + class ProductBiddingCategoryStatus(enum.IntEnum): + """ + Enum describing the status of the product bidding category. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + ACTIVE (int): The category is active and can be used for bidding. + OBSOLETE (int): The category is obsolete. Used only for reporting purposes. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + ACTIVE = 2 + OBSOLETE = 3 + + +class ProductChannelEnum(object): + class ProductChannel(enum.IntEnum): + """ + Enum describing the locality of a product offer. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + ONLINE (int): The item is sold online. + LOCAL (int): The item is sold in local stores. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + ONLINE = 2 + LOCAL = 3 + + +class ProductChannelExclusivityEnum(object): + class ProductChannelExclusivity(enum.IntEnum): + """ + Enum describing the availability of a product offer. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + SINGLE_CHANNEL (int): The item is sold through one channel only, either local stores or online + as indicated by its ProductChannel. + MULTI_CHANNEL (int): The item is matched to its online or local stores counterpart, indicating + it is available for purchase in both ShoppingProductChannels. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + SINGLE_CHANNEL = 2 + MULTI_CHANNEL = 3 + + +class ProductConditionEnum(object): + class ProductCondition(enum.IntEnum): + """ + Enum describing the condition of a product offer. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + NEW (int): The product condition is new. + REFURBISHED (int): The product condition is refurbished. + USED (int): The product condition is used. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + NEW = 3 + REFURBISHED = 4 + USED = 5 + + +class ProductTypeLevelEnum(object): + class ProductTypeLevel(enum.IntEnum): + """ + Enum describing the level of the type of a product offer. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + LEVEL1 (int): Level 1. + LEVEL2 (int): Level 2. + LEVEL3 (int): Level 3. + LEVEL4 (int): Level 4. + LEVEL5 (int): Level 5. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + LEVEL1 = 7 + LEVEL2 = 8 + LEVEL3 = 9 + LEVEL4 = 10 + LEVEL5 = 11 + + +class PromotionExtensionDiscountModifierEnum(object): + class PromotionExtensionDiscountModifier(enum.IntEnum): + """ + A promotion extension discount modifier. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + UP_TO (int): 'Up to'. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + UP_TO = 2 + + +class PromotionExtensionOccasionEnum(object): + class PromotionExtensionOccasion(enum.IntEnum): + """ + A promotion extension occasion. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + NEW_YEARS (int): New Year's. + CHINESE_NEW_YEAR (int): Chinese New Year. + VALENTINES_DAY (int): Valentine's Day. + EASTER (int): Easter. + MOTHERS_DAY (int): Mother's Day. + FATHERS_DAY (int): Father's Day. + LABOR_DAY (int): Labor Day. + BACK_TO_SCHOOL (int): Back To School. + HALLOWEEN (int): Halloween. + BLACK_FRIDAY (int): Black Friday. + CYBER_MONDAY (int): Cyber Monday. + CHRISTMAS (int): Christmas. + BOXING_DAY (int): Boxing Day. + INDEPENDENCE_DAY (int): Independence Day in any country. + NATIONAL_DAY (int): National Day in any country. + END_OF_SEASON (int): End of any season. + WINTER_SALE (int): Winter Sale. + SUMMER_SALE (int): Summer sale. + FALL_SALE (int): Fall Sale. + SPRING_SALE (int): Spring Sale. + RAMADAN (int): Ramadan. + EID_AL_FITR (int): Eid al-Fitr. + EID_AL_ADHA (int): Eid al-Adha. + SINGLES_DAY (int): Singles Day. + WOMENS_DAY (int): Women's Day. + HOLI (int): Holi. + PARENTS_DAY (int): Parent's Day. + ST_NICHOLAS_DAY (int): St. Nicholas Day. + CARNIVAL (int): Carnival. + EPIPHANY (int): Epiphany, also known as Three Kings' Day. + ROSH_HASHANAH (int): Rosh Hashanah. + PASSOVER (int): Passover. + HANUKKAH (int): Hanukkah. + DIWALI (int): Diwali. + NAVRATRI (int): Navratri. + SONGKRAN (int): Available in Thai: Songkran. + YEAR_END_GIFT (int): Available in Japanese: Year-end Gift. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + NEW_YEARS = 2 + CHINESE_NEW_YEAR = 3 + VALENTINES_DAY = 4 + EASTER = 5 + MOTHERS_DAY = 6 + FATHERS_DAY = 7 + LABOR_DAY = 8 + BACK_TO_SCHOOL = 9 + HALLOWEEN = 10 + BLACK_FRIDAY = 11 + CYBER_MONDAY = 12 + CHRISTMAS = 13 + BOXING_DAY = 14 + INDEPENDENCE_DAY = 15 + NATIONAL_DAY = 16 + END_OF_SEASON = 17 + WINTER_SALE = 18 + SUMMER_SALE = 19 + FALL_SALE = 20 + SPRING_SALE = 21 + RAMADAN = 22 + EID_AL_FITR = 23 + EID_AL_ADHA = 24 + SINGLES_DAY = 25 + WOMENS_DAY = 26 + HOLI = 27 + PARENTS_DAY = 28 + ST_NICHOLAS_DAY = 29 + CARNIVAL = 30 + EPIPHANY = 31 + ROSH_HASHANAH = 32 + PASSOVER = 33 + HANUKKAH = 34 + DIWALI = 35 + NAVRATRI = 36 + SONGKRAN = 37 + YEAR_END_GIFT = 38 + + +class PromotionPlaceholderFieldEnum(object): + class PromotionPlaceholderField(enum.IntEnum): + """ + Possible values for Promotion placeholder fields. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + PROMOTION_TARGET (int): Data Type: STRING. The text that appears on the ad when the extension is + shown. + DISCOUNT_MODIFIER (int): Data Type: STRING. Allows you to add "up to" phrase to the promotion, + in case you have variable promotion rates. + PERCENT_OFF (int): Data Type: INT64. Takes a value in micros, where 1 million micros + represents 1%, and is shown as a percentage when rendered. + MONEY_AMOUNT_OFF (int): Data Type: MONEY. Requires a currency and an amount of money. + PROMOTION_CODE (int): Data Type: STRING. A string that the user enters to get the discount. + ORDERS_OVER_AMOUNT (int): Data Type: MONEY. A minimum spend before the user qualifies for the + promotion. + PROMOTION_START (int): Data Type: DATE. The start date of the promotion. + PROMOTION_END (int): Data Type: DATE. The end date of the promotion. + OCCASION (int): Data Type: STRING. Describes the associated event for the promotion + using one of the PromotionExtensionOccasion enum values, for example + NEW\_YEARS. + FINAL_URLS (int): Data Type: URL\_LIST. Final URLs to be used in the ad when using + Upgraded URLs. + FINAL_MOBILE_URLS (int): Data Type: URL\_LIST. Final mobile URLs for the ad when using Upgraded + URLs. + TRACKING_URL (int): Data Type: URL. Tracking template for the ad when using Upgraded URLs. + LANGUAGE (int): Data Type: STRING. A string represented by a language code for the + promotion. + FINAL_URL_SUFFIX (int): Data Type: STRING. Final URL suffix for the ad when using parallel + tracking. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + PROMOTION_TARGET = 2 + DISCOUNT_MODIFIER = 3 + PERCENT_OFF = 4 + MONEY_AMOUNT_OFF = 5 + PROMOTION_CODE = 6 + ORDERS_OVER_AMOUNT = 7 + PROMOTION_START = 8 + PROMOTION_END = 9 + OCCASION = 10 + FINAL_URLS = 11 + FINAL_MOBILE_URLS = 12 + TRACKING_URL = 13 + LANGUAGE = 14 + FINAL_URL_SUFFIX = 15 + + +class ProximityRadiusUnitsEnum(object): + class ProximityRadiusUnits(enum.IntEnum): + """ + The unit of radius distance in proximity (e.g. MILES) + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + MILES (int): Miles + KILOMETERS (int): Kilometers + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + MILES = 2 + KILOMETERS = 3 + + +class QualityScoreBucketEnum(object): + class QualityScoreBucket(enum.IntEnum): + """ + Enum listing the possible quality score buckets. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + BELOW_AVERAGE (int): Quality of the creative is below average. + AVERAGE (int): Quality of the creative is average. + ABOVE_AVERAGE (int): Quality of the creative is above average. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + BELOW_AVERAGE = 2 + AVERAGE = 3 + ABOVE_AVERAGE = 4 + + +class QueryErrorEnum(object): + class QueryError(enum.IntEnum): + """ + Enum describing possible query errors. + + Attributes: + UNSPECIFIED (int): Name unspecified. + UNKNOWN (int): The received error code is not known in this version. + QUERY_ERROR (int): Returned if all other query error reasons are not applicable. + BAD_ENUM_CONSTANT (int): A condition used in the query references an invalid enum constant. + BAD_ESCAPE_SEQUENCE (int): Query contains an invalid escape sequence. + BAD_FIELD_NAME (int): Field name is invalid. + BAD_LIMIT_VALUE (int): Limit value is invalid (i.e. not a number) + BAD_NUMBER (int): Encountered number can not be parsed. + BAD_OPERATOR (int): Invalid operator encountered. + BAD_RESOURCE_TYPE_IN_FROM_CLAUSE (int): Invalid resource type was specified in the FROM clause. + BAD_SYMBOL (int): Non-ASCII symbol encountered outside of strings. + 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. + 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. + EXPECTED_FILTERS_ON_DATE_RANGE (int): Missing filters on date related fields. + EXPECTED_FROM (int): Missing FROM clause. + EXPECTED_LIST (int): The operator used in the conditions requires the value to be a list. + EXPECTED_REFERENCED_FIELD_IN_SELECT_CLAUSE (int): Fields used in WHERE or ORDER BY clauses are missing from the SELECT + clause. + EXPECTED_SELECT (int): SELECT is missing at the beginning of query. + EXPECTED_SINGLE_VALUE (int): A list was passed as a value to a condition whose operator expects a + single value. + EXPECTED_VALUE_WITH_BETWEEN_OPERATOR (int): Missing one or both values with BETWEEN operator. + INVALID_DATE_FORMAT (int): Invalid date format. Expected 'YYYY-MM-DD'. + INVALID_STRING_VALUE (int): Value passed was not a string when it should have been. I.e., it was a + number or unquoted literal. + INVALID_VALUE_WITH_BETWEEN_OPERATOR (int): A String value passed to the BETWEEN operator does not parse as a date. + INVALID_VALUE_WITH_DURING_OPERATOR (int): The value passed to the DURING operator is not a Date range literal + INVALID_VALUE_WITH_LIKE_OPERATOR (int): A non-string value was passed to the LIKE operator. + OPERATOR_FIELD_MISMATCH (int): An operator was provided that is inapplicable to the field being + filtered. + PROHIBITED_EMPTY_LIST_IN_CONDITION (int): A Condition was found with an empty list. + PROHIBITED_ENUM_CONSTANT (int): A condition used in the query references an unsupported enum constant. + PROHIBITED_FIELD_COMBINATION_IN_SELECT_CLAUSE (int): Fields that are not allowed to be selected together were included in + the SELECT clause. + PROHIBITED_FIELD_IN_ORDER_BY_CLAUSE (int): A field that is not orderable was included in the ORDER BY clause. + PROHIBITED_FIELD_IN_SELECT_CLAUSE (int): A field that is not selectable was included in the SELECT clause. + PROHIBITED_FIELD_IN_WHERE_CLAUSE (int): A field that is not filterable was included in the WHERE clause. + PROHIBITED_RESOURCE_TYPE_IN_FROM_CLAUSE (int): Resource type specified in the FROM clause is not supported by this + service. + PROHIBITED_RESOURCE_TYPE_IN_SELECT_CLAUSE (int): A field that comes from an incompatible resource was included in the + SELECT clause. + PROHIBITED_RESOURCE_TYPE_IN_WHERE_CLAUSE (int): A field that comes from an incompatible resource was included in the + WHERE clause. + PROHIBITED_METRIC_IN_SELECT_OR_WHERE_CLAUSE (int): A metric incompatible with the main resource or other selected + segmenting resources was included in the SELECT or WHERE clause. + PROHIBITED_SEGMENT_IN_SELECT_OR_WHERE_CLAUSE (int): A segment incompatible with the main resource or other selected + segmenting resources was included in the SELECT or WHERE clause. + PROHIBITED_SEGMENT_WITH_METRIC_IN_SELECT_OR_WHERE_CLAUSE (int): A segment in the SELECT clause is incompatible with a metric in the + SELECT or WHERE clause. + LIMIT_VALUE_TOO_LOW (int): The value passed to the limit clause is too low. + PROHIBITED_NEWLINE_IN_STRING (int): Query has a string containing a newline character. + PROHIBITED_VALUE_COMBINATION_IN_LIST (int): List contains values of different types. + PROHIBITED_VALUE_COMBINATION_WITH_BETWEEN_OPERATOR (int): The values passed to the BETWEEN operator are not of the same type. + STRING_NOT_TERMINATED (int): Query contains unterminated string. + TOO_MANY_SEGMENTS (int): Too many segments are specified in SELECT clause. + UNEXPECTED_END_OF_QUERY (int): Query is incomplete and cannot be parsed. + UNEXPECTED_FROM_CLAUSE (int): FROM clause cannot be specified in this query. + UNRECOGNIZED_FIELD (int): Query contains one or more unrecognized fields. + UNEXPECTED_INPUT (int): Query has an unexpected extra part. + REQUESTED_METRICS_FOR_MANAGER (int): Metrics cannot be requested for a manager account. To retrieve metrics, + issue separate requests against each client account under the manager + account. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + QUERY_ERROR = 50 + BAD_ENUM_CONSTANT = 18 + BAD_ESCAPE_SEQUENCE = 7 + BAD_FIELD_NAME = 12 + BAD_LIMIT_VALUE = 15 + BAD_NUMBER = 5 + BAD_OPERATOR = 3 + BAD_RESOURCE_TYPE_IN_FROM_CLAUSE = 45 + BAD_SYMBOL = 2 + BAD_VALUE = 4 + DATE_RANGE_TOO_WIDE = 36 + EXPECTED_AND = 30 + EXPECTED_BY = 14 + EXPECTED_DIMENSION_FIELD_IN_SELECT_CLAUSE = 37 + EXPECTED_FILTERS_ON_DATE_RANGE = 55 + EXPECTED_FROM = 44 + EXPECTED_LIST = 41 + EXPECTED_REFERENCED_FIELD_IN_SELECT_CLAUSE = 16 + EXPECTED_SELECT = 13 + EXPECTED_SINGLE_VALUE = 42 + EXPECTED_VALUE_WITH_BETWEEN_OPERATOR = 29 + INVALID_DATE_FORMAT = 38 + INVALID_STRING_VALUE = 57 + INVALID_VALUE_WITH_BETWEEN_OPERATOR = 26 + INVALID_VALUE_WITH_DURING_OPERATOR = 22 + INVALID_VALUE_WITH_LIKE_OPERATOR = 56 + OPERATOR_FIELD_MISMATCH = 35 + PROHIBITED_EMPTY_LIST_IN_CONDITION = 28 + PROHIBITED_ENUM_CONSTANT = 54 + PROHIBITED_FIELD_COMBINATION_IN_SELECT_CLAUSE = 31 + PROHIBITED_FIELD_IN_ORDER_BY_CLAUSE = 40 + PROHIBITED_FIELD_IN_SELECT_CLAUSE = 23 + PROHIBITED_FIELD_IN_WHERE_CLAUSE = 24 + PROHIBITED_RESOURCE_TYPE_IN_FROM_CLAUSE = 43 + PROHIBITED_RESOURCE_TYPE_IN_SELECT_CLAUSE = 48 + PROHIBITED_RESOURCE_TYPE_IN_WHERE_CLAUSE = 58 + PROHIBITED_METRIC_IN_SELECT_OR_WHERE_CLAUSE = 49 + PROHIBITED_SEGMENT_IN_SELECT_OR_WHERE_CLAUSE = 51 + PROHIBITED_SEGMENT_WITH_METRIC_IN_SELECT_OR_WHERE_CLAUSE = 53 + LIMIT_VALUE_TOO_LOW = 25 + PROHIBITED_NEWLINE_IN_STRING = 8 + PROHIBITED_VALUE_COMBINATION_IN_LIST = 10 + PROHIBITED_VALUE_COMBINATION_WITH_BETWEEN_OPERATOR = 21 + STRING_NOT_TERMINATED = 6 + TOO_MANY_SEGMENTS = 34 + UNEXPECTED_END_OF_QUERY = 9 + UNEXPECTED_FROM_CLAUSE = 47 + UNRECOGNIZED_FIELD = 32 + UNEXPECTED_INPUT = 11 + REQUESTED_METRICS_FOR_MANAGER = 59 + + +class QuotaErrorEnum(object): + class QuotaError(enum.IntEnum): + """ + Enum describing possible quota errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + RESOURCE_EXHAUSTED (int): Too many requests. + ACCESS_PROHIBITED (int): Access is prohibited. + RESOURCE_TEMPORARILY_EXHAUSTED (int): Too many requests in a short amount of time. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + RESOURCE_EXHAUSTED = 2 + ACCESS_PROHIBITED = 3 + RESOURCE_TEMPORARILY_EXHAUSTED = 4 + + +class RangeErrorEnum(object): + class RangeError(enum.IntEnum): + """ + Enum describing possible range errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + TOO_LOW (int): Too low. + TOO_HIGH (int): Too high. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + TOO_LOW = 2 + TOO_HIGH = 3 + + +class RealEstatePlaceholderFieldEnum(object): + class RealEstatePlaceholderField(enum.IntEnum): + """ + Possible values for Real Estate placeholder fields. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + LISTING_ID (int): Data Type: STRING. Unique ID. + LISTING_NAME (int): Data Type: STRING. Main headline with listing name to be shown in dynamic + ad. + CITY_NAME (int): Data Type: STRING. City name to be shown in dynamic ad. + DESCRIPTION (int): Data Type: STRING. Description of listing to be shown in dynamic ad. + ADDRESS (int): Data Type: STRING. Complete listing address, including postal code. + PRICE (int): Data Type: STRING. Price to be shown in the ad. + Example: "100.00 USD" + FORMATTED_PRICE (int): Data Type: STRING. Formatted price to be shown in the ad. + Example: "Starting at $100.00 USD", "$80 - $100" + IMAGE_URL (int): Data Type: URL. Image to be displayed in the ad. + PROPERTY_TYPE (int): Data Type: STRING. Type of property (house, condo, apartment, etc.) used + to group like items together for recommendation engine. + LISTING_TYPE (int): Data Type: STRING. Type of listing (resale, rental, foreclosure, etc.) + used to group like items together for recommendation engine. + CONTEXTUAL_KEYWORDS (int): Data Type: STRING\_LIST. Keywords used for product retrieval. + FINAL_URLS (int): Data Type: URL\_LIST. Final URLs to be used in ad when using Upgraded + URLs; the more specific the better (e.g. the individual URL of a + specific listing and its location). + FINAL_MOBILE_URLS (int): Data Type: URL\_LIST. Final mobile URLs for the ad when using Upgraded + URLs. + TRACKING_URL (int): Data Type: URL. Tracking template for the ad when using Upgraded URLs. + ANDROID_APP_LINK (int): Data Type: STRING. Android app link. Must be formatted as: + android-app://{package\_id}/{scheme}/{host\_path}. The components are + defined as follows: package\_id: app ID as specified in Google Play. + scheme: the scheme to pass to the application. Can be HTTP, or a custom + scheme. host\_path: identifies the specific content within your + application. + SIMILAR_LISTING_IDS (int): Data Type: STRING\_LIST. List of recommended listing IDs to show + together with this item. + IOS_APP_LINK (int): Data Type: STRING. iOS app link. + IOS_APP_STORE_ID (int): Data Type: INT64. iOS app store ID. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + LISTING_ID = 2 + LISTING_NAME = 3 + CITY_NAME = 4 + DESCRIPTION = 5 + ADDRESS = 6 + PRICE = 7 + FORMATTED_PRICE = 8 + IMAGE_URL = 9 + PROPERTY_TYPE = 10 + LISTING_TYPE = 11 + CONTEXTUAL_KEYWORDS = 12 + FINAL_URLS = 13 + FINAL_MOBILE_URLS = 14 + TRACKING_URL = 15 + ANDROID_APP_LINK = 16 + SIMILAR_LISTING_IDS = 17 + IOS_APP_LINK = 18 + IOS_APP_STORE_ID = 19 + + +class RecommendationErrorEnum(object): + class RecommendationError(enum.IntEnum): + """ + Enum describing possible errors from applying a recommendation. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + BUDGET_AMOUNT_TOO_SMALL (int): The specified budget amount is too low e.g. lower than minimum currency + unit or lower than ad group minimum cost-per-click. + BUDGET_AMOUNT_TOO_LARGE (int): The specified budget amount is too large. + INVALID_BUDGET_AMOUNT (int): The specified budget amount is not a valid amount. e.g. not a multiple + of minimum currency unit. + POLICY_ERROR (int): The specified keyword or ad violates ad policy. + INVALID_BID_AMOUNT (int): The specified bid amount is not valid. e.g. too many fractional digits, + or negative amount. + ADGROUP_KEYWORD_LIMIT (int): The number of keywords in ad group have reached the maximum allowed. + RECOMMENDATION_ALREADY_APPLIED (int): The recommendation requested to apply has already been applied. + RECOMMENDATION_INVALIDATED (int): The recommendation requested to apply has been invalidated. + TOO_MANY_OPERATIONS (int): The number of operations in a single request exceeds the maximum allowed. + NO_OPERATIONS (int): There are no operations in the request. + DIFFERENT_TYPES_NOT_SUPPORTED (int): Operations with multiple recommendation types are not supported when + partial failure mode is not enabled. + DUPLICATE_RESOURCE_NAME (int): Request contains multiple operations with the same resource\_name. + RECOMMENDATION_ALREADY_DISMISSED (int): The recommendation requested to dismiss has already been dismissed. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + BUDGET_AMOUNT_TOO_SMALL = 2 + BUDGET_AMOUNT_TOO_LARGE = 3 + INVALID_BUDGET_AMOUNT = 4 + POLICY_ERROR = 5 + INVALID_BID_AMOUNT = 6 + ADGROUP_KEYWORD_LIMIT = 7 + RECOMMENDATION_ALREADY_APPLIED = 8 + RECOMMENDATION_INVALIDATED = 9 + TOO_MANY_OPERATIONS = 10 + NO_OPERATIONS = 11 + DIFFERENT_TYPES_NOT_SUPPORTED = 12 + DUPLICATE_RESOURCE_NAME = 13 + RECOMMENDATION_ALREADY_DISMISSED = 14 + + +class RecommendationTypeEnum(object): + class RecommendationType(enum.IntEnum): + """ + Types of recommendations. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + CAMPAIGN_BUDGET (int): Budget recommendation for budget constrained campaigns. + KEYWORD (int): Keyword recommendation. + TEXT_AD (int): Recommendation to add a new text ad. + TARGET_CPA_OPT_IN (int): Recommendation to update a campaign to use a Target CPA bidding strategy. + MAXIMIZE_CONVERSIONS_OPT_IN (int): Recommendation to update a campaign to use the Maximize Conversions + bidding strategy. + ENHANCED_CPC_OPT_IN (int): Recommendation to enable Enhanced Cost Per Click for a campaign. + SEARCH_PARTNERS_OPT_IN (int): Recommendation to start showing your campaign's ads on Google Search + Partners Websites. + MAXIMIZE_CLICKS_OPT_IN (int): Recommendation to update a campaign to use a Maximize Clicks bidding + strategy. + OPTIMIZE_AD_ROTATION (int): Recommendation to start using the "Optimize" ad rotation setting for the + given ad group. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + CAMPAIGN_BUDGET = 2 + KEYWORD = 3 + TEXT_AD = 4 + TARGET_CPA_OPT_IN = 5 + MAXIMIZE_CONVERSIONS_OPT_IN = 6 + ENHANCED_CPC_OPT_IN = 7 + SEARCH_PARTNERS_OPT_IN = 8 + MAXIMIZE_CLICKS_OPT_IN = 9 + OPTIMIZE_AD_ROTATION = 10 + + +class RegionCodeErrorEnum(object): + class RegionCodeError(enum.IntEnum): + """ + Enum describing possible region code errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + INVALID_REGION_CODE (int): Invalid region code. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + INVALID_REGION_CODE = 2 + + +class RequestErrorEnum(object): + class RequestError(enum.IntEnum): + """ + Enum describing possible request errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + RESOURCE_NAME_MISSING (int): Resource name is required for this request. + RESOURCE_NAME_MALFORMED (int): Resource name provided is malformed. + BAD_RESOURCE_ID (int): Resource name provided is malformed. + INVALID_CUSTOMER_ID (int): Customer ID is invalid. + OPERATION_REQUIRED (int): Mutate operation should have either create, update, or remove specified. + RESOURCE_NOT_FOUND (int): Requested resource not found. + INVALID_PAGE_TOKEN (int): Next page token specified in user request is invalid. + EXPIRED_PAGE_TOKEN (int): Next page token specified in user request has expired. + REQUIRED_FIELD_MISSING (int): Required field is missing. + IMMUTABLE_FIELD (int): The field cannot be modified because it's immutable. It's also possible + that the field can be modified using 'create' operation but not 'update'. + TOO_MANY_MUTATE_OPERATIONS (int): Received too many entries in request. + CANNOT_BE_EXECUTED_BY_MANAGER_ACCOUNT (int): Request cannot be executed by a manager account. + CANNOT_MODIFY_FOREIGN_FIELD (int): Mutate request was attempting to modify a readonly field. + For instance, Budget fields can be requested for Ad Group, + but are read-only for adGroups:mutate. + INVALID_ENUM_VALUE (int): Enum value is not permitted. + 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 + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + RESOURCE_NAME_MISSING = 3 + RESOURCE_NAME_MALFORMED = 4 + BAD_RESOURCE_ID = 17 + INVALID_CUSTOMER_ID = 16 + OPERATION_REQUIRED = 5 + RESOURCE_NOT_FOUND = 6 + INVALID_PAGE_TOKEN = 7 + EXPIRED_PAGE_TOKEN = 8 + REQUIRED_FIELD_MISSING = 9 + IMMUTABLE_FIELD = 11 + TOO_MANY_MUTATE_OPERATIONS = 13 + CANNOT_BE_EXECUTED_BY_MANAGER_ACCOUNT = 14 + CANNOT_MODIFY_FOREIGN_FIELD = 15 + INVALID_ENUM_VALUE = 18 + DEVELOPER_TOKEN_PARAMETER_MISSING = 19 + LOGIN_CUSTOMER_ID_PARAMETER_MISSING = 20 + VALIDATE_ONLY_REQUEST_HAS_PAGE_TOKEN = 21 + + +class ResourceAccessDeniedErrorEnum(object): + class ResourceAccessDeniedError(enum.IntEnum): + """ + Enum describing possible resource access denied errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + WRITE_ACCESS_DENIED (int): User did not have write access. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + WRITE_ACCESS_DENIED = 3 + + +class ResourceCountLimitExceededErrorEnum(object): + class ResourceCountLimitExceededError(enum.IntEnum): + """ + Enum describing possible resource count limit exceeded errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + ACCOUNT_LIMIT (int): Indicates that this request would exceed the number of allowed resources + for the Google Ads account. The exact resource type and limit being + checked can be inferred from accountLimitType. + CAMPAIGN_LIMIT (int): Indicates that this request would exceed the number of allowed resources + in a Campaign. The exact resource type and limit being checked can be + inferred from accountLimitType, and the numeric id of the + Campaign involved is given by enclosingId. + ADGROUP_LIMIT (int): Indicates that this request would exceed the number of allowed resources + in an ad group. The exact resource type and limit being checked can be + inferred from accountLimitType, and the numeric id of the + ad group involved is given by enclosingId. + AD_GROUP_AD_LIMIT (int): Indicates that this request would exceed the number of allowed resources + in an ad group ad. The exact resource type and limit being checked can + be inferred from accountLimitType, and the enclosingId + contains the ad group id followed by the ad id, separated by a single + comma (,). + AD_GROUP_CRITERION_LIMIT (int): Indicates that this request would exceed the number of allowed resources + in an ad group criterion. The exact resource type and limit being checked + can be inferred from accountLimitType, and the + enclosingId contains the ad group id followed by the + criterion id, separated by a single comma (,). + SHARED_SET_LIMIT (int): Indicates that this request would exceed the number of allowed resources + in this shared set. The exact resource type and limit being checked can + be inferred from accountLimitType, and the numeric id of the + shared set involved is given by enclosingId. + 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. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + ACCOUNT_LIMIT = 2 + CAMPAIGN_LIMIT = 3 + ADGROUP_LIMIT = 4 + AD_GROUP_AD_LIMIT = 5 + AD_GROUP_CRITERION_LIMIT = 6 + SHARED_SET_LIMIT = 7 + MATCHING_FUNCTION_LIMIT = 8 + RESPONSE_ROW_LIMIT_EXCEEDED = 9 + + +class SearchTermMatchTypeEnum(object): + class SearchTermMatchType(enum.IntEnum): + """ + Possible match types for a keyword triggering an ad, including variants. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + BROAD (int): Broad match. + EXACT (int): Exact match. + PHRASE (int): Phrase match. + NEAR_EXACT (int): Exact match (close variant). + NEAR_PHRASE (int): Phrase match (close variant). + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + BROAD = 2 + EXACT = 3 + PHRASE = 4 + NEAR_EXACT = 5 + NEAR_PHRASE = 6 + + +class SearchTermTargetingStatusEnum(object): + class SearchTermTargetingStatus(enum.IntEnum): + """ + Indicates whether the search term is one of your targeted or excluded + keywords. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + ADDED (int): Search term is added to targeted keywords. + EXCLUDED (int): Search term matches a negative keyword. + ADDED_EXCLUDED (int): Search term has been both added and excluded. + NONE (int): Search term is neither targeted nor excluded. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + ADDED = 2 + EXCLUDED = 3 + ADDED_EXCLUDED = 4 + NONE = 5 + + +class ServedAssetFieldTypeEnum(object): + class ServedAssetFieldType(enum.IntEnum): + """ + The possible asset field 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. + HEADLINE_1 (int): The asset is used in headline 1. + HEADLINE_2 (int): The asset is used in headline 2. + HEADLINE_3 (int): The asset is used in headline 3. + DESCRIPTION_1 (int): The asset is used in description 1. + DESCRIPTION_2 (int): The asset is used in description 2. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + HEADLINE_1 = 2 + HEADLINE_2 = 3 + HEADLINE_3 = 4 + DESCRIPTION_1 = 5 + DESCRIPTION_2 = 6 + + +class SettingErrorEnum(object): + class SettingError(enum.IntEnum): + """ + Enum describing possible setting errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + SETTING_TYPE_IS_NOT_AVAILABLE (int): The campaign setting is not available for this Google Ads account. + SETTING_TYPE_IS_NOT_COMPATIBLE_WITH_CAMPAIGN (int): The setting is not compatible with the campaign. + TARGETING_SETTING_CONTAINS_INVALID_CRITERION_TYPE_GROUP (int): The supplied TargetingSetting contains an invalid CriterionTypeGroup. See + CriterionTypeGroup documentation for CriterionTypeGroups allowed + in Campaign or AdGroup TargetingSettings. + TARGETING_SETTING_DEMOGRAPHIC_CRITERION_TYPE_GROUPS_MUST_BE_SET_TO_TARGET_ALL (int): TargetingSetting must not explicitly set any of the Demographic + CriterionTypeGroups (AGE\_RANGE, GENDER, PARENT, INCOME\_RANGE) to false + (it's okay to not set them at all, in which case the system will set + them to true automatically). + TARGETING_SETTING_CANNOT_CHANGE_TARGET_ALL_TO_FALSE_FOR_DEMOGRAPHIC_CRITERION_TYPE_GROUP (int): TargetingSetting cannot change any of the Demographic + CriterionTypeGroups (AGE\_RANGE, GENDER, PARENT, INCOME\_RANGE) from + true to false. + DYNAMIC_SEARCH_ADS_SETTING_AT_LEAST_ONE_FEED_ID_MUST_BE_PRESENT (int): At least one feed id should be present. + DYNAMIC_SEARCH_ADS_SETTING_CONTAINS_INVALID_DOMAIN_NAME (int): The supplied DynamicSearchAdsSetting contains an invalid domain name. + DYNAMIC_SEARCH_ADS_SETTING_CONTAINS_SUBDOMAIN_NAME (int): The supplied DynamicSearchAdsSetting contains a subdomain name. + 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. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + SETTING_TYPE_IS_NOT_AVAILABLE = 3 + SETTING_TYPE_IS_NOT_COMPATIBLE_WITH_CAMPAIGN = 4 + TARGETING_SETTING_CONTAINS_INVALID_CRITERION_TYPE_GROUP = 5 + TARGETING_SETTING_DEMOGRAPHIC_CRITERION_TYPE_GROUPS_MUST_BE_SET_TO_TARGET_ALL = 6 + TARGETING_SETTING_CANNOT_CHANGE_TARGET_ALL_TO_FALSE_FOR_DEMOGRAPHIC_CRITERION_TYPE_GROUP = 7 + DYNAMIC_SEARCH_ADS_SETTING_AT_LEAST_ONE_FEED_ID_MUST_BE_PRESENT = 8 + DYNAMIC_SEARCH_ADS_SETTING_CONTAINS_INVALID_DOMAIN_NAME = 9 + 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 + + +class SharedCriterionErrorEnum(object): + class SharedCriterionError(enum.IntEnum): + """ + Enum describing possible shared criterion errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + CRITERION_TYPE_NOT_ALLOWED_FOR_SHARED_SET_TYPE (int): The criterion is not appropriate for the shared set type. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + CRITERION_TYPE_NOT_ALLOWED_FOR_SHARED_SET_TYPE = 2 + + +class SharedSetErrorEnum(object): + class SharedSetError(enum.IntEnum): + """ + Enum describing possible shared set errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + CUSTOMER_CANNOT_CREATE_SHARED_SET_OF_THIS_TYPE (int): The customer cannot create this type of shared set. + DUPLICATE_NAME (int): A shared set with this name already exists. + SHARED_SET_REMOVED (int): Removed shared sets cannot be mutated. + SHARED_SET_IN_USE (int): The shared set cannot be removed because it is in use. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + CUSTOMER_CANNOT_CREATE_SHARED_SET_OF_THIS_TYPE = 2 + DUPLICATE_NAME = 3 + SHARED_SET_REMOVED = 4 + SHARED_SET_IN_USE = 5 + + +class SharedSetStatusEnum(object): + class SharedSetStatus(enum.IntEnum): + """ + Enum listing the possible shared set statuses. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + ENABLED (int): The shared set is enabled. + REMOVED (int): The shared set is removed and can no longer be used. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + ENABLED = 2 + REMOVED = 3 + + +class SharedSetTypeEnum(object): + class SharedSetType(enum.IntEnum): + """ + Enum listing the possible shared set types. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + NEGATIVE_KEYWORDS (int): A set of keywords that can be excluded from targeting. + NEGATIVE_PLACEMENTS (int): A set of placements that can be excluded from targeting. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + NEGATIVE_KEYWORDS = 2 + NEGATIVE_PLACEMENTS = 3 + + +class SitelinkPlaceholderFieldEnum(object): + class SitelinkPlaceholderField(enum.IntEnum): + """ + Possible values for Sitelink placeholder fields. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + TEXT (int): Data Type: STRING. The link text for your sitelink. + LINE_1 (int): Data Type: STRING. First line of the sitelink description. + LINE_2 (int): Data Type: STRING. Second line of the sitelink description. + FINAL_URLS (int): Data Type: URL\_LIST. Final URLs for the sitelink when using Upgraded + URLs. + FINAL_MOBILE_URLS (int): Data Type: URL\_LIST. Final Mobile URLs for the sitelink when using + Upgraded URLs. + TRACKING_URL (int): Data Type: URL. Tracking template for the sitelink when using Upgraded + URLs. + FINAL_URL_SUFFIX (int): Data Type: STRING. Final URL suffix for sitelink when using parallel + tracking. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + TEXT = 2 + LINE_1 = 3 + LINE_2 = 4 + FINAL_URLS = 5 + FINAL_MOBILE_URLS = 6 + TRACKING_URL = 7 + FINAL_URL_SUFFIX = 8 + + +class SlotEnum(object): + class Slot(enum.IntEnum): + """ + Enumerates possible positions of the Ad. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): The value is unknown in this version. + SEARCH_SIDE (int): Google search: Side. + SEARCH_TOP (int): Google search: Top. + SEARCH_OTHER (int): Google search: Other. + CONTENT (int): Google Display Network. + SEARCH_PARTNER_TOP (int): Search partners: Top. + SEARCH_PARTNER_OTHER (int): Search partners: Other. + MIXED (int): Cross-network. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + SEARCH_SIDE = 2 + SEARCH_TOP = 3 + SEARCH_OTHER = 4 + CONTENT = 5 + SEARCH_PARTNER_TOP = 6 + SEARCH_PARTNER_OTHER = 7 + MIXED = 8 + + +class SpendingLimitTypeEnum(object): + class SpendingLimitType(enum.IntEnum): + """ + The possible spending limit types used by certain resources as an + alternative to absolute money values in micros. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + INFINITE (int): Infinite, indicates unlimited spending power. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + INFINITE = 2 + + +class StringFormatErrorEnum(object): + class StringFormatError(enum.IntEnum): + """ + Enum describing possible string format errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + ILLEGAL_CHARS (int): The input string value contains disallowed characters. + INVALID_FORMAT (int): The input string value is invalid for the associated field. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + ILLEGAL_CHARS = 2 + INVALID_FORMAT = 3 + + +class StringLengthErrorEnum(object): + class StringLengthError(enum.IntEnum): + """ + Enum describing possible string length errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + TOO_SHORT (int): Too short. + TOO_LONG (int): Too long. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + TOO_SHORT = 2 + TOO_LONG = 3 + + +class StructuredSnippetPlaceholderFieldEnum(object): + class StructuredSnippetPlaceholderField(enum.IntEnum): + """ + Possible values for Structured Snippet placeholder fields. + + Attributes: + 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 + 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. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + HEADER = 2 + SNIPPETS = 3 + + +class SystemManagedResourceSourceEnum(object): + class SystemManagedResourceSource(enum.IntEnum): + """ + Enum listing the possible system managed entity sources. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + AD_VARIATIONS (int): Generated ad variations experiment ad. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + AD_VARIATIONS = 2 + + +class TargetCpaOptInRecommendationGoalEnum(object): + class TargetCpaOptInRecommendationGoal(enum.IntEnum): + """ + Goal of TargetCpaOptIn recommendation. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + SAME_COST (int): Recommendation to set Target CPA to maintain the same cost. + SAME_CONVERSIONS (int): Recommendation to set Target CPA to maintain the same conversions. + SAME_CPA (int): Recommendation to set Target CPA to maintain the same CPA. + CLOSEST_CPA (int): Recommendation to set Target CPA to a value that is as close as possible + to, yet lower than, the actual CPA (computed for past 28 days). + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + SAME_COST = 2 + SAME_CONVERSIONS = 3 + SAME_CPA = 4 + CLOSEST_CPA = 5 + + +class TargetImpressionShareLocationEnum(object): + class TargetImpressionShareLocation(enum.IntEnum): + """ + Enum describing possible goals. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + ANYWHERE_ON_PAGE (int): Any location on the web page. + TOP_OF_PAGE (int): Top box of ads. + ABSOLUTE_TOP_OF_PAGE (int): Top slot in the top box of ads. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + ANYWHERE_ON_PAGE = 2 + TOP_OF_PAGE = 3 + ABSOLUTE_TOP_OF_PAGE = 4 + + +class TargetingDimensionEnum(object): + class TargetingDimension(enum.IntEnum): + """ + Enum describing possible targeting dimensions. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + KEYWORD (int): Keyword criteria, e.g. 'mars cruise'. KEYWORD may be used as a custom bid + dimension. Keywords are always a targeting dimension, so may not be set + as a target "ALL" dimension with TargetRestriction. + AUDIENCE (int): Audience criteria, which include user list, user interest, custom + affinity, and custom in market. + TOPIC (int): Topic criteria for targeting categories of content, e.g. + 'category::Animals>Pets' Used for Display and Video targeting. + GENDER (int): Criteria for targeting gender. + AGE_RANGE (int): Criteria for targeting age ranges. + PLACEMENT (int): Placement criteria, which include websites like 'www.flowers4sale.com', + as well as mobile applications, mobile app categories, YouTube videos, + and YouTube channels. + PARENTAL_STATUS (int): Criteria for parental status targeting. + INCOME_RANGE (int): Criteria for income range targeting. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + KEYWORD = 2 + AUDIENCE = 3 + TOPIC = 4 + GENDER = 5 + AGE_RANGE = 6 + PLACEMENT = 7 + PARENTAL_STATUS = 8 + INCOME_RANGE = 9 + + +class TimeTypeEnum(object): + class TimeType(enum.IntEnum): + """ + The possible time types used by certain resources as an alternative to + absolute timestamps. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + NOW (int): As soon as possible. + FOREVER (int): An infinite point in the future. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + NOW = 2 + FOREVER = 3 + + +class TrackingCodePageFormatEnum(object): + class TrackingCodePageFormat(enum.IntEnum): + """ + The format of the web page where the tracking tag and snippet will be + installed. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + HTML (int): Standard HTML page format. + AMP (int): Google AMP page format. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + HTML = 2 + AMP = 3 + + +class TrackingCodeTypeEnum(object): + class TrackingCodeType(enum.IntEnum): + """ + The type of the generated tag snippets for tracking conversions. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + WEBPAGE (int): The snippet that is fired as a result of a website page loading. + WEBPAGE_ONCLICK (int): The snippet contains a JavaScript function which fires the tag. This + function is typically called from an onClick handler added to a link or + 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. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + WEBPAGE = 2 + WEBPAGE_ONCLICK = 3 + CLICK_TO_CALL = 4 + + +class TravelPlaceholderFieldEnum(object): + class TravelPlaceholderField(enum.IntEnum): + """ + Possible values for Travel placeholder fields. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + DESTINATION_ID (int): Data Type: STRING. Required. Destination id. Example: PAR, LON. + For feed items that only have destination id, destination id must be a + unique key. For feed items that have both destination id and origin id, + then the combination must be a unique key. + ORIGIN_ID (int): Data Type: STRING. Origin id. Example: PAR, LON. Combination of + DESTINATION\_ID and ORIGIN\_ID must be unique per offer. + TITLE (int): Data Type: STRING. Required. Main headline with name to be shown in + dynamic ad. + DESTINATION_NAME (int): Data Type: STRING. The destination name. Shorter names are recommended. + ORIGIN_NAME (int): Data Type: STRING. Origin name. Shorter names are recommended. + PRICE (int): Data Type: STRING. Price to be shown in the ad. Highly recommended for + dynamic ads. + Example: "100.00 USD" + FORMATTED_PRICE (int): Data Type: STRING. Formatted price to be shown in the ad. + Example: "Starting at $100.00 USD", "$80 - $100" + SALE_PRICE (int): Data Type: STRING. Sale price to be shown in the ad. + Example: "80.00 USD" + FORMATTED_SALE_PRICE (int): Data Type: STRING. Formatted sale price to be shown in the ad. + Example: "On sale for $80.00", "$60 - $80" + IMAGE_URL (int): Data Type: URL. Image to be displayed in the ad. + CATEGORY (int): Data Type: STRING. Category of travel offer used to group like items + together for recommendation engine. + CONTEXTUAL_KEYWORDS (int): Data Type: STRING\_LIST. Keywords used for product retrieval. + DESTINATION_ADDRESS (int): Data Type: STRING. Address of travel offer, including postal code. + FINAL_URL (int): Data Type: URL\_LIST. Required. Final URLs to be used in ad, when using + Upgraded URLs; the more specific the better (e.g. the individual URL of + a specific travel offer and its location). + FINAL_MOBILE_URLS (int): Data Type: URL\_LIST. Final mobile URLs for the ad when using Upgraded + URLs. + TRACKING_URL (int): Data Type: URL. Tracking template for the ad when using Upgraded URLs. + ANDROID_APP_LINK (int): Data Type: STRING. Android app link. Must be formatted as: + android-app://{package\_id}/{scheme}/{host\_path}. The components are + defined as follows: package\_id: app ID as specified in Google Play. + scheme: the scheme to pass to the application. Can be HTTP, or a custom + scheme. host\_path: identifies the specific content within your + application. + SIMILAR_DESTINATION_IDS (int): Data Type: STRING\_LIST. List of recommended destination IDs to show + together with this item. + IOS_APP_LINK (int): Data Type: STRING. iOS app link. + IOS_APP_STORE_ID (int): Data Type: INT64. iOS app store ID. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + DESTINATION_ID = 2 + ORIGIN_ID = 3 + TITLE = 4 + DESTINATION_NAME = 5 + ORIGIN_NAME = 6 + PRICE = 7 + FORMATTED_PRICE = 8 + SALE_PRICE = 9 + FORMATTED_SALE_PRICE = 10 + IMAGE_URL = 11 + CATEGORY = 12 + CONTEXTUAL_KEYWORDS = 13 + DESTINATION_ADDRESS = 14 + FINAL_URL = 15 + FINAL_MOBILE_URLS = 16 + TRACKING_URL = 17 + ANDROID_APP_LINK = 18 + SIMILAR_DESTINATION_IDS = 19 + IOS_APP_LINK = 20 + IOS_APP_STORE_ID = 21 + + +class UrlFieldErrorEnum(object): + class UrlFieldError(enum.IntEnum): + """ + Enum describing possible url field errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + INVALID_TRACKING_URL_TEMPLATE (int): The tracking url template is invalid. + INVALID_TAG_IN_TRACKING_URL_TEMPLATE (int): The tracking url template contains invalid tag. + MISSING_TRACKING_URL_TEMPLATE_TAG (int): The tracking url template must contain at least one tag (e.g. {lpurl}), + This applies only to tracking url template associated with website ads or + product ads. + MISSING_PROTOCOL_IN_TRACKING_URL_TEMPLATE (int): The tracking url template must start with a valid protocol (or lpurl + tag). + INVALID_PROTOCOL_IN_TRACKING_URL_TEMPLATE (int): The tracking url template starts with an invalid protocol. + MALFORMED_TRACKING_URL_TEMPLATE (int): The tracking url template contains illegal characters. + MISSING_HOST_IN_TRACKING_URL_TEMPLATE (int): The tracking url template must contain a host name (or lpurl tag). + INVALID_TLD_IN_TRACKING_URL_TEMPLATE (int): The tracking url template has an invalid or missing top level domain + extension. + REDUNDANT_NESTED_TRACKING_URL_TEMPLATE_TAG (int): The tracking url template contains nested occurrences of the same + conditional tag (i.e. {ifmobile:{ifmobile:x}}). + INVALID_FINAL_URL (int): The final url is invalid. + INVALID_TAG_IN_FINAL_URL (int): The final url contains invalid tag. + REDUNDANT_NESTED_FINAL_URL_TAG (int): The final url contains nested occurrences of the same conditional tag + (i.e. {ifmobile:{ifmobile:x}}). + MISSING_PROTOCOL_IN_FINAL_URL (int): The final url must start with a valid protocol. + INVALID_PROTOCOL_IN_FINAL_URL (int): The final url starts with an invalid protocol. + MALFORMED_FINAL_URL (int): The final url contains illegal characters. + MISSING_HOST_IN_FINAL_URL (int): The final url must contain a host name. + INVALID_TLD_IN_FINAL_URL (int): The tracking url template has an invalid or missing top level domain + extension. + INVALID_FINAL_MOBILE_URL (int): The final mobile url is invalid. + INVALID_TAG_IN_FINAL_MOBILE_URL (int): The final mobile url contains invalid tag. + REDUNDANT_NESTED_FINAL_MOBILE_URL_TAG (int): The final mobile url contains nested occurrences of the same conditional + tag (i.e. {ifmobile:{ifmobile:x}}). + MISSING_PROTOCOL_IN_FINAL_MOBILE_URL (int): The final mobile url must start with a valid protocol. + INVALID_PROTOCOL_IN_FINAL_MOBILE_URL (int): The final mobile url starts with an invalid protocol. + MALFORMED_FINAL_MOBILE_URL (int): The final mobile url contains illegal characters. + MISSING_HOST_IN_FINAL_MOBILE_URL (int): The final mobile url must contain a host name. + INVALID_TLD_IN_FINAL_MOBILE_URL (int): The tracking url template has an invalid or missing top level domain + extension. + INVALID_FINAL_APP_URL (int): The final app url is invalid. + INVALID_TAG_IN_FINAL_APP_URL (int): The final app url contains invalid tag. + REDUNDANT_NESTED_FINAL_APP_URL_TAG (int): The final app url contains nested occurrences of the same conditional tag + (i.e. {ifmobile:{ifmobile:x}}). + MULTIPLE_APP_URLS_FOR_OSTYPE (int): More than one app url found for the same OS type. + INVALID_OSTYPE (int): The OS type given for an app url is not valid. + INVALID_PROTOCOL_FOR_APP_URL (int): The protocol given for an app url is not valid. (E.g. "android-app://") + INVALID_PACKAGE_ID_FOR_APP_URL (int): The package id (app id) given for an app url is not valid. + URL_CUSTOM_PARAMETERS_COUNT_EXCEEDS_LIMIT (int): The number of url custom parameters for an resource exceeds the maximum + limit allowed. + INVALID_CHARACTERS_IN_URL_CUSTOM_PARAMETER_KEY (int): An invalid character appears in the parameter key. + INVALID_CHARACTERS_IN_URL_CUSTOM_PARAMETER_VALUE (int): An invalid character appears in the parameter value. + INVALID_TAG_IN_URL_CUSTOM_PARAMETER_VALUE (int): The url custom parameter value fails url tag validation. + REDUNDANT_NESTED_URL_CUSTOM_PARAMETER_TAG (int): The custom parameter contains nested occurrences of the same conditional + tag (i.e. {ifmobile:{ifmobile:x}}). + MISSING_PROTOCOL (int): The protocol (http:// or https://) is missing. + INVALID_PROTOCOL (int): Unsupported protocol in URL. Only http and https are supported. + INVALID_URL (int): The url is invalid. + DESTINATION_URL_DEPRECATED (int): Destination Url is deprecated. + INVALID_TAG_IN_URL (int): The url contains invalid tag. + MISSING_URL_TAG (int): The url must contain at least one tag (e.g. {lpurl}), This applies only + to urls associated with website ads or product ads. + DUPLICATE_URL_ID (int): Duplicate url id. + INVALID_URL_ID (int): Invalid url id. + FINAL_URL_SUFFIX_MALFORMED (int): The final url suffix cannot begin with '?' or '&' characters and must be + a valid query string. + INVALID_TAG_IN_FINAL_URL_SUFFIX (int): The final url suffix cannot contain {lpurl} related or {ignore} tags. + INVALID_TOP_LEVEL_DOMAIN (int): The top level domain is invalid, e.g, not a public top level domain + listed in publicsuffix.org. + MALFORMED_TOP_LEVEL_DOMAIN (int): Malformed top level domain in URL. + MALFORMED_URL (int): Malformed URL. + MISSING_HOST (int): No host found in URL. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + INVALID_TRACKING_URL_TEMPLATE = 2 + INVALID_TAG_IN_TRACKING_URL_TEMPLATE = 3 + MISSING_TRACKING_URL_TEMPLATE_TAG = 4 + MISSING_PROTOCOL_IN_TRACKING_URL_TEMPLATE = 5 + INVALID_PROTOCOL_IN_TRACKING_URL_TEMPLATE = 6 + MALFORMED_TRACKING_URL_TEMPLATE = 7 + MISSING_HOST_IN_TRACKING_URL_TEMPLATE = 8 + INVALID_TLD_IN_TRACKING_URL_TEMPLATE = 9 + REDUNDANT_NESTED_TRACKING_URL_TEMPLATE_TAG = 10 + INVALID_FINAL_URL = 11 + INVALID_TAG_IN_FINAL_URL = 12 + REDUNDANT_NESTED_FINAL_URL_TAG = 13 + MISSING_PROTOCOL_IN_FINAL_URL = 14 + INVALID_PROTOCOL_IN_FINAL_URL = 15 + MALFORMED_FINAL_URL = 16 + MISSING_HOST_IN_FINAL_URL = 17 + INVALID_TLD_IN_FINAL_URL = 18 + INVALID_FINAL_MOBILE_URL = 19 + INVALID_TAG_IN_FINAL_MOBILE_URL = 20 + REDUNDANT_NESTED_FINAL_MOBILE_URL_TAG = 21 + MISSING_PROTOCOL_IN_FINAL_MOBILE_URL = 22 + INVALID_PROTOCOL_IN_FINAL_MOBILE_URL = 23 + MALFORMED_FINAL_MOBILE_URL = 24 + MISSING_HOST_IN_FINAL_MOBILE_URL = 25 + INVALID_TLD_IN_FINAL_MOBILE_URL = 26 + INVALID_FINAL_APP_URL = 27 + INVALID_TAG_IN_FINAL_APP_URL = 28 + REDUNDANT_NESTED_FINAL_APP_URL_TAG = 29 + MULTIPLE_APP_URLS_FOR_OSTYPE = 30 + INVALID_OSTYPE = 31 + INVALID_PROTOCOL_FOR_APP_URL = 32 + INVALID_PACKAGE_ID_FOR_APP_URL = 33 + URL_CUSTOM_PARAMETERS_COUNT_EXCEEDS_LIMIT = 34 + INVALID_CHARACTERS_IN_URL_CUSTOM_PARAMETER_KEY = 39 + INVALID_CHARACTERS_IN_URL_CUSTOM_PARAMETER_VALUE = 40 + INVALID_TAG_IN_URL_CUSTOM_PARAMETER_VALUE = 41 + REDUNDANT_NESTED_URL_CUSTOM_PARAMETER_TAG = 42 + MISSING_PROTOCOL = 43 + INVALID_PROTOCOL = 52 + INVALID_URL = 44 + DESTINATION_URL_DEPRECATED = 45 + INVALID_TAG_IN_URL = 46 + MISSING_URL_TAG = 47 + DUPLICATE_URL_ID = 48 + INVALID_URL_ID = 49 + FINAL_URL_SUFFIX_MALFORMED = 50 + INVALID_TAG_IN_FINAL_URL_SUFFIX = 51 + INVALID_TOP_LEVEL_DOMAIN = 53 + MALFORMED_TOP_LEVEL_DOMAIN = 54 + MALFORMED_URL = 55 + MISSING_HOST = 56 + + +class UserInterestTaxonomyTypeEnum(object): + class UserInterestTaxonomyType(enum.IntEnum): + """ + Enum containing the possible UserInterestTaxonomyTypes. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + AFFINITY (int): The affinity for this user interest. + IN_MARKET (int): The market for this user interest. + MOBILE_APP_INSTALL_USER (int): Users known to have installed applications in the specified categories. + VERTICAL_GEO (int): The geographical location of the interest-based vertical. + NEW_SMART_PHONE_USER (int): User interest criteria for new smart phone users. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + AFFINITY = 2 + IN_MARKET = 3 + MOBILE_APP_INSTALL_USER = 4 + VERTICAL_GEO = 5 + NEW_SMART_PHONE_USER = 6 + + +class UserListAccessStatusEnum(object): + class UserListAccessStatus(enum.IntEnum): + """ + Enum containing possible user list access statuses. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + ENABLED (int): The access is enabled. + DISABLED (int): The access is disabled. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + ENABLED = 2 + DISABLED = 3 + + +class UserListClosingReasonEnum(object): + class UserListClosingReason(enum.IntEnum): + """ + Enum describing possible user list closing reasons. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + UNUSED (int): The userlist was closed because of not being used for over one year. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + UNUSED = 2 + + +class UserListCombinedRuleOperatorEnum(object): + class UserListCombinedRuleOperator(enum.IntEnum): + """ + Enum describing possible user list combined rule operators. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + AND (int): A AND B. + AND_NOT (int): A AND NOT B. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + AND = 2 + AND_NOT = 3 + + +class UserListCrmDataSourceTypeEnum(object): + class UserListCrmDataSourceType(enum.IntEnum): + """ + Enum describing possible user list crm data source type. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + FIRST_PARTY (int): The uploaded data is first-party data. + THIRD_PARTY_CREDIT_BUREAU (int): The uploaded data is from a third-party credit bureau. + THIRD_PARTY_VOTER_FILE (int): The uploaded data is from a third-party voter file. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + FIRST_PARTY = 2 + THIRD_PARTY_CREDIT_BUREAU = 3 + THIRD_PARTY_VOTER_FILE = 4 + + +class UserListDateRuleItemOperatorEnum(object): + class UserListDateRuleItemOperator(enum.IntEnum): + """ + Enum describing possible user list date rule item operators. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + EQUALS (int): Equals. + NOT_EQUALS (int): Not Equals. + BEFORE (int): Before. + AFTER (int): After. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + EQUALS = 2 + NOT_EQUALS = 3 + BEFORE = 4 + AFTER = 5 + + +class UserListErrorEnum(object): + class UserListError(enum.IntEnum): + """ + Enum describing possible user list errors. + + Attributes: + UNSPECIFIED (int): Enum unspecified. + UNKNOWN (int): The received error code is not known in this version. + EXTERNAL_REMARKETING_USER_LIST_MUTATE_NOT_SUPPORTED (int): Creating and updating external remarketing user lists is not supported. + CONCRETE_TYPE_REQUIRED (int): Concrete type of user list is required. + CONVERSION_TYPE_ID_REQUIRED (int): Creating/updating user list conversion types requires specifying the + conversion type Id. + DUPLICATE_CONVERSION_TYPES (int): Remarketing user list cannot have duplicate conversion types. + INVALID_CONVERSION_TYPE (int): Conversion type is invalid/unknown. + INVALID_DESCRIPTION (int): User list description is empty or invalid. + INVALID_NAME (int): User list name is empty or invalid. + INVALID_TYPE (int): Type of the UserList does not match. + CAN_NOT_ADD_LOGICAL_LIST_AS_LOGICAL_LIST_OPERAND (int): Embedded logical user lists are not allowed. + INVALID_USER_LIST_LOGICAL_RULE_OPERAND (int): User list rule operand is invalid. + NAME_ALREADY_USED (int): Name is already being used for another user list for the account. + NEW_CONVERSION_TYPE_NAME_REQUIRED (int): Name is required when creating a new conversion type. + CONVERSION_TYPE_NAME_ALREADY_USED (int): The given conversion type name has been used. + OWNERSHIP_REQUIRED_FOR_SET (int): Only an owner account may edit a user list. + USER_LIST_MUTATE_NOT_SUPPORTED (int): Creating user list without setting type in oneof user\_list field, or + creating/updating read-only user list types is not allowed. + INVALID_RULE (int): Rule is invalid. + INVALID_DATE_RANGE (int): The specified date range is empty. + CAN_NOT_MUTATE_SENSITIVE_USERLIST (int): A UserList which is privacy sensitive or legal rejected cannot be mutated + by external users. + MAX_NUM_RULEBASED_USERLISTS (int): Maximum number of rulebased user lists a customer can have. + CANNOT_MODIFY_BILLABLE_RECORD_COUNT (int): BasicUserList's billable record field cannot be modified once it is set. + APP_ID_NOT_SET (int): crm\_based\_user\_list.app\_id field must be set when upload\_key\_type + is MOBILE\_ADVERTISING\_ID. + USERLIST_NAME_IS_RESERVED_FOR_SYSTEM_LIST (int): Name of the user list is reserved for system generated lists and cannot + be used. + ADVERTISER_NOT_WHITELISTED_FOR_USING_UPLOADED_DATA (int): Advertiser needs to be whitelisted to use remarketing lists created from + advertiser uploaded data (e.g., Customer Match lists). + RULE_TYPE_IS_NOT_SUPPORTED (int): The provided rule\_type is not supported for the user list. + CAN_NOT_ADD_A_SIMILAR_USERLIST_AS_LOGICAL_LIST_OPERAND (int): Similar user list cannot be used as a logical user list operand. + CAN_NOT_MIX_CRM_BASED_IN_LOGICAL_LIST_WITH_OTHER_LISTS (int): Logical user list should not have a mix of CRM based user list and other + types of lists in its rules. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + EXTERNAL_REMARKETING_USER_LIST_MUTATE_NOT_SUPPORTED = 2 + CONCRETE_TYPE_REQUIRED = 3 + CONVERSION_TYPE_ID_REQUIRED = 4 + DUPLICATE_CONVERSION_TYPES = 5 + INVALID_CONVERSION_TYPE = 6 + INVALID_DESCRIPTION = 7 + INVALID_NAME = 8 + INVALID_TYPE = 9 + CAN_NOT_ADD_LOGICAL_LIST_AS_LOGICAL_LIST_OPERAND = 10 + INVALID_USER_LIST_LOGICAL_RULE_OPERAND = 11 + NAME_ALREADY_USED = 12 + NEW_CONVERSION_TYPE_NAME_REQUIRED = 13 + CONVERSION_TYPE_NAME_ALREADY_USED = 14 + OWNERSHIP_REQUIRED_FOR_SET = 15 + USER_LIST_MUTATE_NOT_SUPPORTED = 16 + INVALID_RULE = 17 + INVALID_DATE_RANGE = 27 + CAN_NOT_MUTATE_SENSITIVE_USERLIST = 28 + MAX_NUM_RULEBASED_USERLISTS = 29 + CANNOT_MODIFY_BILLABLE_RECORD_COUNT = 30 + APP_ID_NOT_SET = 31 + USERLIST_NAME_IS_RESERVED_FOR_SYSTEM_LIST = 32 + ADVERTISER_NOT_WHITELISTED_FOR_USING_UPLOADED_DATA = 33 + 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 + + +class UserListLogicalRuleOperatorEnum(object): + class UserListLogicalRuleOperator(enum.IntEnum): + """ + Enum describing possible user list logical rule operators. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + ALL (int): And - all of the operands. + ANY (int): Or - at least one of the operands. + NONE (int): Not - none of the operands. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + ALL = 2 + ANY = 3 + NONE = 4 + + +class UserListMembershipStatusEnum(object): + class UserListMembershipStatus(enum.IntEnum): + """ + Enum containing possible user list membership statuses. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + OPEN (int): Open status - List is accruing members and can be targeted to. + CLOSED (int): Closed status - No new members being added. Cannot be used for targeting. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + OPEN = 2 + CLOSED = 3 + + +class UserListNumberRuleItemOperatorEnum(object): + class UserListNumberRuleItemOperator(enum.IntEnum): + """ + Enum describing possible user list number rule item operators. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + GREATER_THAN (int): Greater than. + GREATER_THAN_OR_EQUAL (int): Greater than or equal. + EQUALS (int): Equals. + NOT_EQUALS (int): Not equals. + LESS_THAN (int): Less than. + LESS_THAN_OR_EQUAL (int): Less than or equal. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + GREATER_THAN = 2 + GREATER_THAN_OR_EQUAL = 3 + EQUALS = 4 + NOT_EQUALS = 5 + LESS_THAN = 6 + LESS_THAN_OR_EQUAL = 7 + + +class UserListPrepopulationStatusEnum(object): + class UserListPrepopulationStatus(enum.IntEnum): + """ + Enum describing possible user list prepopulation status. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + REQUESTED (int): Prepopoulation is being requested. + FINISHED (int): Prepopulation is finished. + FAILED (int): Prepopulation failed. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + REQUESTED = 2 + FINISHED = 3 + FAILED = 4 + + +class UserListRuleTypeEnum(object): + class UserListRuleType(enum.IntEnum): + """ + Enum describing possible user list rule types. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + AND_OF_ORS (int): Conjunctive normal form. + OR_OF_ANDS (int): Disjunctive normal form. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + AND_OF_ORS = 2 + OR_OF_ANDS = 3 + + +class UserListSizeRangeEnum(object): + class UserListSizeRange(enum.IntEnum): + """ + Enum containing possible user list size ranges. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + LESS_THAN_FIVE_HUNDRED (int): User list has less than 500 users. + LESS_THAN_ONE_THOUSAND (int): User list has number of users in range of 500 to 1000. + ONE_THOUSAND_TO_TEN_THOUSAND (int): User list has number of users in range of 1000 to 10000. + TEN_THOUSAND_TO_FIFTY_THOUSAND (int): User list has number of users in range of 10000 to 50000. + FIFTY_THOUSAND_TO_ONE_HUNDRED_THOUSAND (int): User list has number of users in range of 50000 to 100000. + ONE_HUNDRED_THOUSAND_TO_THREE_HUNDRED_THOUSAND (int): User list has number of users in range of 100000 to 300000. + THREE_HUNDRED_THOUSAND_TO_FIVE_HUNDRED_THOUSAND (int): User list has number of users in range of 300000 to 500000. + FIVE_HUNDRED_THOUSAND_TO_ONE_MILLION (int): User list has number of users in range of 500000 to 1 million. + ONE_MILLION_TO_TWO_MILLION (int): User list has number of users in range of 1 to 2 millions. + TWO_MILLION_TO_THREE_MILLION (int): User list has number of users in range of 2 to 3 millions. + THREE_MILLION_TO_FIVE_MILLION (int): User list has number of users in range of 3 to 5 millions. + FIVE_MILLION_TO_TEN_MILLION (int): User list has number of users in range of 5 to 10 millions. + TEN_MILLION_TO_TWENTY_MILLION (int): User list has number of users in range of 10 to 20 millions. + TWENTY_MILLION_TO_THIRTY_MILLION (int): User list has number of users in range of 20 to 30 millions. + THIRTY_MILLION_TO_FIFTY_MILLION (int): User list has number of users in range of 30 to 50 millions. + OVER_FIFTY_MILLION (int): User list has over 50 million users. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + LESS_THAN_FIVE_HUNDRED = 2 + LESS_THAN_ONE_THOUSAND = 3 + ONE_THOUSAND_TO_TEN_THOUSAND = 4 + TEN_THOUSAND_TO_FIFTY_THOUSAND = 5 + FIFTY_THOUSAND_TO_ONE_HUNDRED_THOUSAND = 6 + ONE_HUNDRED_THOUSAND_TO_THREE_HUNDRED_THOUSAND = 7 + THREE_HUNDRED_THOUSAND_TO_FIVE_HUNDRED_THOUSAND = 8 + FIVE_HUNDRED_THOUSAND_TO_ONE_MILLION = 9 + ONE_MILLION_TO_TWO_MILLION = 10 + TWO_MILLION_TO_THREE_MILLION = 11 + THREE_MILLION_TO_FIVE_MILLION = 12 + FIVE_MILLION_TO_TEN_MILLION = 13 + TEN_MILLION_TO_TWENTY_MILLION = 14 + TWENTY_MILLION_TO_THIRTY_MILLION = 15 + THIRTY_MILLION_TO_FIFTY_MILLION = 16 + OVER_FIFTY_MILLION = 17 + + +class UserListStringRuleItemOperatorEnum(object): + class UserListStringRuleItemOperator(enum.IntEnum): + """ + Enum describing possible user list string rule item operators. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + CONTAINS (int): Contains. + EQUALS (int): Equals. + STARTS_WITH (int): Starts with. + ENDS_WITH (int): Ends with. + NOT_EQUALS (int): Not equals. + NOT_CONTAINS (int): Not contains. + NOT_STARTS_WITH (int): Not starts with. + NOT_ENDS_WITH (int): Not ends with. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + CONTAINS = 2 + EQUALS = 3 + STARTS_WITH = 4 + ENDS_WITH = 5 + NOT_EQUALS = 6 + NOT_CONTAINS = 7 + NOT_STARTS_WITH = 8 + NOT_ENDS_WITH = 9 + + +class UserListTypeEnum(object): + class UserListType(enum.IntEnum): + """ + Enum containing possible user list types. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + REMARKETING (int): UserList represented as a collection of conversion types. + LOGICAL (int): UserList represented as a combination of other user lists/interests. + EXTERNAL_REMARKETING (int): UserList created in the Google Ad Manager platform. + RULE_BASED (int): UserList associated with a rule. + SIMILAR (int): UserList with users similar to users of another UserList. + CRM_BASED (int): UserList of first-party CRM data provided by advertiser in the form of + emails or other formats. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + REMARKETING = 2 + LOGICAL = 3 + EXTERNAL_REMARKETING = 4 + RULE_BASED = 5 + SIMILAR = 6 + CRM_BASED = 7 + + +class VanityPharmaDisplayUrlModeEnum(object): + class VanityPharmaDisplayUrlMode(enum.IntEnum): + """ + Enum describing possible display modes for vanity pharma URLs. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + MANUFACTURER_WEBSITE_URL (int): Replace vanity pharma URL with manufacturer website url. + WEBSITE_DESCRIPTION (int): Replace vanity pharma URL with description of the website. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + MANUFACTURER_WEBSITE_URL = 2 + WEBSITE_DESCRIPTION = 3 + + +class VanityPharmaTextEnum(object): + class VanityPharmaText(enum.IntEnum): + """ + Enum describing possible text. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + PRESCRIPTION_TREATMENT_WEBSITE_EN (int): Prescription treatment website with website content in English. + PRESCRIPTION_TREATMENT_WEBSITE_ES (int): Prescription treatment website with website content in Spanish + (Sitio de tratamientos con receta). + PRESCRIPTION_DEVICE_WEBSITE_EN (int): Prescription device website with website content in English. + PRESCRIPTION_DEVICE_WEBSITE_ES (int): Prescription device website with website content in Spanish (Sitio de + dispositivos con receta). + MEDICAL_DEVICE_WEBSITE_EN (int): Medical device website with website content in English. + MEDICAL_DEVICE_WEBSITE_ES (int): Medical device website with website content in Spanish (Sitio de + dispositivos médicos). + PREVENTATIVE_TREATMENT_WEBSITE_EN (int): Preventative treatment website with website content in English. + PREVENTATIVE_TREATMENT_WEBSITE_ES (int): Preventative treatment website with website content in Spanish (Sitio de + tratamientos preventivos). + PRESCRIPTION_CONTRACEPTION_WEBSITE_EN (int): Prescription contraception website with website content in English. + PRESCRIPTION_CONTRACEPTION_WEBSITE_ES (int): Prescription contraception website with website content in Spanish (Sitio + de anticonceptivos con receta). + PRESCRIPTION_VACCINE_WEBSITE_EN (int): Prescription vaccine website with website content in English. + PRESCRIPTION_VACCINE_WEBSITE_ES (int): Prescription vaccine website with website content in Spanish (Sitio de + vacunas con receta). + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + PRESCRIPTION_TREATMENT_WEBSITE_EN = 2 + PRESCRIPTION_TREATMENT_WEBSITE_ES = 3 + PRESCRIPTION_DEVICE_WEBSITE_EN = 4 + PRESCRIPTION_DEVICE_WEBSITE_ES = 5 + MEDICAL_DEVICE_WEBSITE_EN = 6 + MEDICAL_DEVICE_WEBSITE_ES = 7 + PREVENTATIVE_TREATMENT_WEBSITE_EN = 8 + PREVENTATIVE_TREATMENT_WEBSITE_ES = 9 + PRESCRIPTION_CONTRACEPTION_WEBSITE_EN = 10 + PRESCRIPTION_CONTRACEPTION_WEBSITE_ES = 11 + PRESCRIPTION_VACCINE_WEBSITE_EN = 12 + PRESCRIPTION_VACCINE_WEBSITE_ES = 13 + + +class WebpageConditionOperandEnum(object): + class WebpageConditionOperand(enum.IntEnum): + """ + The webpage condition operand in webpage criterion. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + URL (int): Operand denoting a webpage URL targeting condition. + CATEGORY (int): Operand denoting a webpage category targeting condition. + PAGE_TITLE (int): Operand denoting a webpage title targeting condition. + PAGE_CONTENT (int): Operand denoting a webpage content targeting condition. + CUSTOM_LABEL (int): Operand denoting a webpage custom label targeting condition. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + URL = 2 + CATEGORY = 3 + PAGE_TITLE = 4 + PAGE_CONTENT = 5 + CUSTOM_LABEL = 6 + + +class WebpageConditionOperatorEnum(object): + class WebpageConditionOperator(enum.IntEnum): + """ + The webpage condition operator in webpage criterion. + + Attributes: + UNSPECIFIED (int): Not specified. + UNKNOWN (int): Used for return value only. Represents value unknown in this version. + EQUALS (int): The argument web condition is equal to the compared web condition. + CONTAINS (int): The argument web condition is part of the compared web condition. + """ + UNSPECIFIED = 0 + UNKNOWN = 1 + EQUALS = 2 + CONTAINS = 3 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 new file mode 100644 index 000000000..55b4d0d1a --- /dev/null +++ b/google/ads/google_ads/v1/services/extension_feed_item_service_client.py @@ -0,0 +1,277 @@ +# -*- 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 new file mode 100644 index 000000000..6acdc870d --- /dev/null +++ b/google/ads/google_ads/v1/services/extension_feed_item_service_client_config.py @@ -0,0 +1,33 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.ExtensionFeedItemService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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 new file mode 100644 index 000000000..5311ec2a6 --- /dev/null +++ b/google/ads/google_ads/v1/services/feed_item_service_client.py @@ -0,0 +1,279 @@ +# -*- 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 new file mode 100644 index 000000000..1547b85c0 --- /dev/null +++ b/google/ads/google_ads/v1/services/feed_item_service_client_config.py @@ -0,0 +1,33 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.FeedItemService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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 new file mode 100644 index 000000000..cf6eb21ae --- /dev/null +++ b/google/ads/google_ads/v1/services/feed_item_target_service_client.py @@ -0,0 +1,270 @@ +# -*- 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 new file mode 100644 index 000000000..5ecc0ef46 --- /dev/null +++ b/google/ads/google_ads/v1/services/feed_item_target_service_client_config.py @@ -0,0 +1,33 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.FeedItemTargetService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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 new file mode 100644 index 000000000..db167566a --- /dev/null +++ b/google/ads/google_ads/v1/services/feed_mapping_service_client.py @@ -0,0 +1,279 @@ +# -*- 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 new file mode 100644 index 000000000..a090ea8e0 --- /dev/null +++ b/google/ads/google_ads/v1/services/feed_mapping_service_client_config.py @@ -0,0 +1,33 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.FeedMappingService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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/v1/services/feed_placeholder_view_service_client.py new file mode 100644 index 000000000..54e93d30d --- /dev/null +++ b/google/ads/google_ads/v1/services/feed_placeholder_view_service_client.py @@ -0,0 +1,217 @@ +# -*- 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 FeedPlaceholderViewService 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_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 + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', ).version + + +class FeedPlaceholderViewServiceClient(object): + """Service to fetch feed placeholder 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.v1.services.FeedPlaceholderViewService' + + @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: + FeedPlaceholderViewServiceClient: 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_placeholder_view_path(cls, customer, feed_placeholder_view): + """Return a fully-qualified feed_placeholder_view string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/feedPlaceholderViews/{feed_placeholder_view}', + customer=customer, + feed_placeholder_view=feed_placeholder_view, + ) + + def __init__(self, + transport=None, + channel=None, + credentials=None, + client_config=None, + client_info=None): + """Constructor. + + Args: + transport (Union[~.FeedPlaceholderViewServiceGrpcTransport, + Callable[[~.Credentials, type], ~.FeedPlaceholderViewServiceGrpcTransport]): 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_placeholder_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=feed_placeholder_view_service_grpc_transport. + FeedPlaceholderViewServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.') + self.transport = transport + else: + self.transport = feed_placeholder_view_service_grpc_transport.FeedPlaceholderViewServiceGrpcTransport( + 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_placeholder_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 feed placeholder view in full detail. + + Args: + resource_name (str): 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. + 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.FeedPlaceholderView` 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_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, + ) + + 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) 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 new file mode 100644 index 000000000..1a3d4a3ab --- /dev/null +++ b/google/ads/google_ads/v1/services/feed_placeholder_view_service_client_config.py @@ -0,0 +1,28 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.FeedPlaceholderViewService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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 new file mode 100644 index 000000000..154b57591 --- /dev/null +++ b/google/ads/google_ads/v1/services/feed_service_client.py @@ -0,0 +1,277 @@ +# -*- 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 new file mode 100644 index 000000000..1ad833bf4 --- /dev/null +++ b/google/ads/google_ads/v1/services/feed_service_client_config.py @@ -0,0 +1,33 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.FeedService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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/v1/services/gender_view_service_client.py new file mode 100644 index 000000000..ea467f063 --- /dev/null +++ b/google/ads/google_ads/v1/services/gender_view_service_client.py @@ -0,0 +1,215 @@ +# -*- 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 GenderViewService 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 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 + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', ).version + + +class GenderViewServiceClient(object): + """Service to manage gender 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.v1.services.GenderViewService' + + @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: + GenderViewServiceClient: 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 gender_view_path(cls, customer, gender_view): + """Return a fully-qualified gender_view string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/genderViews/{gender_view}', + customer=customer, + gender_view=gender_view, + ) + + def __init__(self, + transport=None, + channel=None, + credentials=None, + client_config=None, + client_info=None): + """Constructor. + + Args: + transport (Union[~.GenderViewServiceGrpcTransport, + Callable[[~.Credentials, type], ~.GenderViewServiceGrpcTransport]): 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 = gender_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=gender_view_service_grpc_transport. + GenderViewServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.') + self.transport = transport + else: + self.transport = gender_view_service_grpc_transport.GenderViewServiceGrpcTransport( + 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_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. + 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.GenderView` 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_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, + ) + + 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) 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 new file mode 100644 index 000000000..24c253fdf --- /dev/null +++ b/google/ads/google_ads/v1/services/gender_view_service_client_config.py @@ -0,0 +1,28 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.GenderViewService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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/v1/services/geo_target_constant_service_client.py new file mode 100644 index 000000000..0628bfeeb --- /dev/null +++ b/google/ads/google_ads/v1/services/geo_target_constant_service_client.py @@ -0,0 +1,295 @@ +# -*- 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 GeoTargetConstantService 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 +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 + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', ).version + + +class GeoTargetConstantServiceClient(object): + """Service to fetch geo target 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.v1.services.GeoTargetConstantService' + + @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: + GeoTargetConstantServiceClient: 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 geo_target_constant_path(cls, geo_target_constant): + """Return a fully-qualified geo_target_constant string.""" + return google.api_core.path_template.expand( + 'geoTargetConstants/{geo_target_constant}', + geo_target_constant=geo_target_constant, + ) + + def __init__(self, + transport=None, + channel=None, + credentials=None, + client_config=None, + client_info=None): + """Constructor. + + Args: + transport (Union[~.GeoTargetConstantServiceGrpcTransport, + Callable[[~.Credentials, type], ~.GeoTargetConstantServiceGrpcTransport]): 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 = geo_target_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=geo_target_constant_service_grpc_transport. + GeoTargetConstantServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.') + self.transport = transport + else: + self.transport = geo_target_constant_service_grpc_transport.GeoTargetConstantServiceGrpcTransport( + 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_geo_target_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 geo target constant in full detail. + + Args: + resource_name (str): 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. + 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.GeoTargetConstant` 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_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, + ) + + 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) + + def suggest_geo_target_constants( + self, + locale, + country_code, + location_names=None, + geo_targets=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + 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, + 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. + + 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. + + 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. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v1.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. + 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.SuggestGeoTargetConstantsResponse` 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 '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, + ) + + # 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( + location_names=location_names, + geo_targets=geo_targets, + ) + + request = geo_target_constant_service_pb2.SuggestGeoTargetConstantsRequest( + locale=locale, + country_code=country_code, + location_names=location_names, + geo_targets=geo_targets, + ) + return self._inner_api_calls['suggest_geo_target_constants']( + request, retry=retry, timeout=timeout, metadata=metadata) 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 new file mode 100644 index 000000000..eabc41690 --- /dev/null +++ b/google/ads/google_ads/v1/services/geo_target_constant_service_client_config.py @@ -0,0 +1,33 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.GeoTargetConstantService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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/v1/services/geographic_view_service_client.py new file mode 100644 index 000000000..3430150a7 --- /dev/null +++ b/google/ads/google_ads/v1/services/geographic_view_service_client.py @@ -0,0 +1,216 @@ +# -*- 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 GeographicViewService 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 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 + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', ).version + + +class GeographicViewServiceClient(object): + """Service to manage geographic 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.v1.services.GeographicViewService' + + @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: + GeographicViewServiceClient: 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 geographic_view_path(cls, customer, geographic_view): + """Return a fully-qualified geographic_view string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/geographicViews/{geographic_view}', + customer=customer, + geographic_view=geographic_view, + ) + + def __init__(self, + transport=None, + channel=None, + credentials=None, + client_config=None, + client_info=None): + """Constructor. + + Args: + transport (Union[~.GeographicViewServiceGrpcTransport, + Callable[[~.Credentials, type], ~.GeographicViewServiceGrpcTransport]): 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 = geographic_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=geographic_view_service_grpc_transport. + GeographicViewServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.') + self.transport = transport + else: + self.transport = geographic_view_service_grpc_transport.GeographicViewServiceGrpcTransport( + 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_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. + 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.GeographicView` 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_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, + ) + + 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) 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 new file mode 100644 index 000000000..e23c88fd6 --- /dev/null +++ b/google/ads/google_ads/v1/services/geographic_view_service_client_config.py @@ -0,0 +1,28 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.GeographicViewService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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/v1/services/google_ads_field_service_client.py new file mode 100644 index 000000000..9493b0740 --- /dev/null +++ b/google/ads/google_ads/v1/services/google_ads_field_service_client.py @@ -0,0 +1,286 @@ +# -*- 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 GoogleAdsFieldService 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 +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 + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', ).version + + +class GoogleAdsFieldServiceClient(object): + """Service to fetch Google Ads API fields.""" + + 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.GoogleAdsFieldService' + + @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: + GoogleAdsFieldServiceClient: 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 google_ads_field_path(cls, google_ads_field): + """Return a fully-qualified google_ads_field string.""" + return google.api_core.path_template.expand( + 'googleAdsFields/{google_ads_field}', + google_ads_field=google_ads_field, + ) + + def __init__(self, + transport=None, + channel=None, + credentials=None, + client_config=None, + client_info=None): + """Constructor. + + Args: + transport (Union[~.GoogleAdsFieldServiceGrpcTransport, + Callable[[~.Credentials, type], ~.GoogleAdsFieldServiceGrpcTransport]): 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_field_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_field_service_grpc_transport. + GoogleAdsFieldServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.') + self.transport = transport + else: + self.transport = google_ads_field_service_grpc_transport.GoogleAdsFieldServiceGrpcTransport( + 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_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. + 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.GoogleAdsField` 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_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, + ) + + 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) + + def search_google_ads_fields( + self, + query, + page_size=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None): + """ + Returns all fields that match the search query. + + Args: + 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. + 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.GoogleAdsField` 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_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, + ) + + request = google_ads_field_service_pb2.SearchGoogleAdsFieldsRequest( + query=query, + page_size=page_size, + ) + 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), + 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/v1/services/google_ads_field_service_client_config.py b/google/ads/google_ads/v1/services/google_ads_field_service_client_config.py new file mode 100644 index 000000000..f90ccaa01 --- /dev/null +++ b/google/ads/google_ads/v1/services/google_ads_field_service_client_config.py @@ -0,0 +1,33 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.GoogleAdsFieldService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "methods": { + "GetGoogleAdsField": { + "timeout_millis": 600000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "SearchGoogleAdsFields": { + "timeout_millis": 600000, + "retry_codes_name": "non_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 new file mode 100644 index 000000000..b3845cf49 --- /dev/null +++ b/google/ads/google_ads/v1/services/google_ads_service_client.py @@ -0,0 +1,295 @@ +# -*- 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. Operation statuses are returned. + + 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 new file mode 100644 index 000000000..d1a64187b --- /dev/null +++ b/google/ads/google_ads/v1/services/google_ads_service_client_config.py @@ -0,0 +1,33 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.GoogleAdsService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "methods": { + "Search": { + "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/v1/services/group_placement_view_service_client.py new file mode 100644 index 000000000..868d5eece --- /dev/null +++ b/google/ads/google_ads/v1/services/group_placement_view_service_client.py @@ -0,0 +1,217 @@ +# -*- 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 GroupPlacementViewService 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 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 + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', ).version + + +class GroupPlacementViewServiceClient(object): + """Service to fetch Group Placement 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.v1.services.GroupPlacementViewService' + + @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: + GroupPlacementViewServiceClient: 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 group_placement_view_path(cls, customer, group_placement_view): + """Return a fully-qualified group_placement_view string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/groupPlacementViews/{group_placement_view}', + customer=customer, + group_placement_view=group_placement_view, + ) + + def __init__(self, + transport=None, + channel=None, + credentials=None, + client_config=None, + client_info=None): + """Constructor. + + Args: + transport (Union[~.GroupPlacementViewServiceGrpcTransport, + Callable[[~.Credentials, type], ~.GroupPlacementViewServiceGrpcTransport]): 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 = group_placement_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=group_placement_view_service_grpc_transport. + GroupPlacementViewServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.') + self.transport = transport + else: + self.transport = group_placement_view_service_grpc_transport.GroupPlacementViewServiceGrpcTransport( + 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_group_placement_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 Group Placement view in full detail. + + Args: + resource_name (str): 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. + 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.GroupPlacementView` 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_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, + ) + + 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) 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 new file mode 100644 index 000000000..aefa4a673 --- /dev/null +++ b/google/ads/google_ads/v1/services/group_placement_view_service_client_config.py @@ -0,0 +1,28 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.GroupPlacementViewService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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/v1/services/hotel_group_view_service_client.py new file mode 100644 index 000000000..e8f2ea235 --- /dev/null +++ b/google/ads/google_ads/v1/services/hotel_group_view_service_client.py @@ -0,0 +1,216 @@ +# -*- 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 HotelGroupViewService 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 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 + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', ).version + + +class HotelGroupViewServiceClient(object): + """Service to manage Hotel Group 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.v1.services.HotelGroupViewService' + + @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: + HotelGroupViewServiceClient: 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 hotel_group_view_path(cls, customer, hotel_group_view): + """Return a fully-qualified hotel_group_view string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/hotelGroupViews/{hotel_group_view}', + customer=customer, + hotel_group_view=hotel_group_view, + ) + + def __init__(self, + transport=None, + channel=None, + credentials=None, + client_config=None, + client_info=None): + """Constructor. + + Args: + transport (Union[~.HotelGroupViewServiceGrpcTransport, + Callable[[~.Credentials, type], ~.HotelGroupViewServiceGrpcTransport]): 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 = hotel_group_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=hotel_group_view_service_grpc_transport. + HotelGroupViewServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.') + self.transport = transport + else: + self.transport = hotel_group_view_service_grpc_transport.HotelGroupViewServiceGrpcTransport( + 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_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. + 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.HotelGroupView` 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_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, + ) + + 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) 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 new file mode 100644 index 000000000..2658b3970 --- /dev/null +++ b/google/ads/google_ads/v1/services/hotel_group_view_service_client_config.py @@ -0,0 +1,28 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.HotelGroupViewService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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/v1/services/hotel_performance_view_service_client.py new file mode 100644 index 000000000..d77209ad9 --- /dev/null +++ b/google/ads/google_ads/v1/services/hotel_performance_view_service_client.py @@ -0,0 +1,224 @@ +# -*- 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 HotelPerformanceViewService 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 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 + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', ).version + + +class HotelPerformanceViewServiceClient(object): + """Service to manage Hotel Performance 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.v1.services.HotelPerformanceViewService' + + @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: + HotelPerformanceViewServiceClient: 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 hotel_performance_view_path(cls, customer): + """Return a fully-qualified hotel_performance_view string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/hotelPerformanceView', + customer=customer, + ) + + @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[~.HotelPerformanceViewServiceGrpcTransport, + Callable[[~.Credentials, type], ~.HotelPerformanceViewServiceGrpcTransport]): 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 = hotel_performance_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=hotel_performance_view_service_grpc_transport + .HotelPerformanceViewServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.') + self.transport = transport + else: + self.transport = hotel_performance_view_service_grpc_transport.HotelPerformanceViewServiceGrpcTransport( + 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_hotel_performance_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 Performance View in full detail. + + Args: + resource_name (str): 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. + 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.HotelPerformanceView` 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_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, + ) + + 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) 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 new file mode 100644 index 000000000..302490be1 --- /dev/null +++ b/google/ads/google_ads/v1/services/hotel_performance_view_service_client_config.py @@ -0,0 +1,28 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.HotelPerformanceViewService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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.py b/google/ads/google_ads/v1/services/keyword_plan_ad_group_service_client.py new file mode 100644 index 000000000..911e141ad --- /dev/null +++ b/google/ads/google_ads/v1/services/keyword_plan_ad_group_service_client.py @@ -0,0 +1,282 @@ +# -*- 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 KeywordPlanAdGroupService 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_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 + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', ).version + + +class KeywordPlanAdGroupServiceClient(object): + """Service to manage Keyword Plan 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.KeywordPlanAdGroupService' + + @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: + KeywordPlanAdGroupServiceClient: 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_path(cls, customer, keyword_plan_ad_group): + """Return a fully-qualified keyword_plan_ad_group string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/keywordPlanAdGroups/{keyword_plan_ad_group}', + customer=customer, + keyword_plan_ad_group=keyword_plan_ad_group, + ) + + def __init__(self, + transport=None, + channel=None, + credentials=None, + client_config=None, + client_info=None): + """Constructor. + + Args: + transport (Union[~.KeywordPlanAdGroupServiceGrpcTransport, + Callable[[~.Credentials, type], ~.KeywordPlanAdGroupServiceGrpcTransport]): 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_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_service_grpc_transport. + KeywordPlanAdGroupServiceGrpcTransport, + ) + 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_service_grpc_transport.KeywordPlanAdGroupServiceGrpcTransport( + 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( + 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 in full detail. + + Args: + resource_name (str): 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. + 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.KeywordPlanAdGroup` 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' 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, + ) + + 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) + + def mutate_keyword_plan_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 Keyword Plan ad groups. Operation statuses are + 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. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v1.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. + 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.MutateKeywordPlanAdGroupsResponse` 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_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, + ) + + request = keyword_plan_ad_group_service_pb2.MutateKeywordPlanAdGroupsRequest( + customer_id=customer_id, + operations=operations, + 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) 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 new file mode 100644 index 000000000..593c55ae4 --- /dev/null +++ b/google/ads/google_ads/v1/services/keyword_plan_ad_group_service_client_config.py @@ -0,0 +1,33 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.KeywordPlanAdGroupService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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.py b/google/ads/google_ads/v1/services/keyword_plan_campaign_service_client.py new file mode 100644 index 000000000..4746f440d --- /dev/null +++ b/google/ads/google_ads/v1/services/keyword_plan_campaign_service_client.py @@ -0,0 +1,282 @@ +# -*- 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 KeywordPlanCampaignService 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_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 + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', ).version + + +class KeywordPlanCampaignServiceClient(object): + """Service to manage Keyword Plan 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.KeywordPlanCampaignService' + + @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: + KeywordPlanCampaignServiceClient: 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_path(cls, customer, keyword_plan_campaign): + """Return a fully-qualified keyword_plan_campaign string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/keywordPlanCampaigns/{keyword_plan_campaign}', + customer=customer, + keyword_plan_campaign=keyword_plan_campaign, + ) + + def __init__(self, + transport=None, + channel=None, + credentials=None, + client_config=None, + client_info=None): + """Constructor. + + Args: + transport (Union[~.KeywordPlanCampaignServiceGrpcTransport, + Callable[[~.Credentials, type], ~.KeywordPlanCampaignServiceGrpcTransport]): 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_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_service_grpc_transport. + KeywordPlanCampaignServiceGrpcTransport, + ) + 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_service_grpc_transport.KeywordPlanCampaignServiceGrpcTransport( + 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( + 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 campaign in full detail. + + Args: + resource_name (str): 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. + 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.KeywordPlanCampaign` 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' 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, + ) + + 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) + + def mutate_keyword_plan_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 Keyword Plan campaigns. Operation statuses are + 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. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.ads.googleads_v1.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. + 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.MutateKeywordPlanCampaignsResponse` 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_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, + ) + + request = keyword_plan_campaign_service_pb2.MutateKeywordPlanCampaignsRequest( + customer_id=customer_id, + operations=operations, + partial_failure=partial_failure, + validate_only=validate_only, + ) + return self._inner_api_calls['mutate_keyword_plan_campaigns']( + request, retry=retry, timeout=timeout, metadata=metadata) 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 new file mode 100644 index 000000000..1ef4cd87c --- /dev/null +++ b/google/ads/google_ads/v1/services/keyword_plan_campaign_service_client_config.py @@ -0,0 +1,33 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.KeywordPlanCampaignService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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 new file mode 100644 index 000000000..adf711d0b --- /dev/null +++ b/google/ads/google_ads/v1/services/keyword_plan_idea_service_client.py @@ -0,0 +1,252 @@ +# -*- 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 new file mode 100644 index 000000000..ad8c397da --- /dev/null +++ b/google/ads/google_ads/v1/services/keyword_plan_idea_service_client_config.py @@ -0,0 +1,28 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.KeywordPlanIdeaService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "methods": { + "GenerateKeywordIdeas": { + "timeout_millis": 600000, + "retry_codes_name": "non_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 new file mode 100644 index 000000000..ea7d62c74 --- /dev/null +++ b/google/ads/google_ads/v1/services/keyword_plan_keyword_service_client.py @@ -0,0 +1,282 @@ +# -*- 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 new file mode 100644 index 000000000..b80864bd0 --- /dev/null +++ b/google/ads/google_ads/v1/services/keyword_plan_keyword_service_client_config.py @@ -0,0 +1,33 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.KeywordPlanKeywordService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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 new file mode 100644 index 000000000..a78759491 --- /dev/null +++ b/google/ads/google_ads/v1/services/keyword_plan_negative_keyword_service_client.py @@ -0,0 +1,285 @@ +# -*- 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 new file mode 100644 index 000000000..c4eb5ac5b --- /dev/null +++ b/google/ads/google_ads/v1/services/keyword_plan_negative_keyword_service_client_config.py @@ -0,0 +1,33 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.KeywordPlanNegativeKeywordService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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 new file mode 100644 index 000000000..52b0b1992 --- /dev/null +++ b/google/ads/google_ads/v1/services/keyword_plan_service_client.py @@ -0,0 +1,374 @@ +# -*- 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 new file mode 100644 index 000000000..863b56ce5 --- /dev/null +++ b/google/ads/google_ads/v1/services/keyword_plan_service_client_config.py @@ -0,0 +1,43 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.KeywordPlanService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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": "non_idempotent", + "retry_params_name": "default" + }, + "GenerateHistoricalMetrics": { + "timeout_millis": 600000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + } + } + } + } +} diff --git a/google/ads/google_ads/v1/services/keyword_view_service_client.py b/google/ads/google_ads/v1/services/keyword_view_service_client.py new file mode 100644 index 000000000..78f9b2f16 --- /dev/null +++ b/google/ads/google_ads/v1/services/keyword_view_service_client.py @@ -0,0 +1,215 @@ +# -*- 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 KeywordViewService 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_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 + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', ).version + + +class KeywordViewServiceClient(object): + """Service to manage keyword 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.v1.services.KeywordViewService' + + @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: + KeywordViewServiceClient: 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_view_path(cls, customer, keyword_view): + """Return a fully-qualified keyword_view string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/keywordViews/{keyword_view}', + customer=customer, + keyword_view=keyword_view, + ) + + def __init__(self, + transport=None, + channel=None, + credentials=None, + client_config=None, + client_info=None): + """Constructor. + + Args: + transport (Union[~.KeywordViewServiceGrpcTransport, + Callable[[~.Credentials, type], ~.KeywordViewServiceGrpcTransport]): 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_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=keyword_view_service_grpc_transport. + KeywordViewServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.') + self.transport = transport + else: + self.transport = keyword_view_service_grpc_transport.KeywordViewServiceGrpcTransport( + 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_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. + 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.KeywordView` 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_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, + ) + + 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) 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 new file mode 100644 index 000000000..bcc4704c4 --- /dev/null +++ b/google/ads/google_ads/v1/services/keyword_view_service_client_config.py @@ -0,0 +1,28 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.KeywordViewService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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 new file mode 100644 index 000000000..807fa5f3b --- /dev/null +++ b/google/ads/google_ads/v1/services/label_service_client.py @@ -0,0 +1,276 @@ +# -*- 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 new file mode 100644 index 000000000..39143f392 --- /dev/null +++ b/google/ads/google_ads/v1/services/label_service_client_config.py @@ -0,0 +1,33 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.LabelService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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/language_constant_service_client.py b/google/ads/google_ads/v1/services/language_constant_service_client.py new file mode 100644 index 000000000..42388805d --- /dev/null +++ b/google/ads/google_ads/v1/services/language_constant_service_client.py @@ -0,0 +1,215 @@ +# -*- 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 LanguageConstantService 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 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 + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', ).version + + +class LanguageConstantServiceClient(object): + """Service to fetch language 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.v1.services.LanguageConstantService' + + @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: + LanguageConstantServiceClient: 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 language_constant_path(cls, language_constant): + """Return a fully-qualified language_constant string.""" + return google.api_core.path_template.expand( + 'languageConstants/{language_constant}', + language_constant=language_constant, + ) + + def __init__(self, + transport=None, + channel=None, + credentials=None, + client_config=None, + client_info=None): + """Constructor. + + Args: + transport (Union[~.LanguageConstantServiceGrpcTransport, + Callable[[~.Credentials, type], ~.LanguageConstantServiceGrpcTransport]): 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 = language_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=language_constant_service_grpc_transport. + LanguageConstantServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.') + self.transport = transport + else: + self.transport = language_constant_service_grpc_transport.LanguageConstantServiceGrpcTransport( + 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_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. + 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.LanguageConstant` 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_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, + ) + + 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) 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 new file mode 100644 index 000000000..e099467cf --- /dev/null +++ b/google/ads/google_ads/v1/services/language_constant_service_client_config.py @@ -0,0 +1,28 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.LanguageConstantService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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/v1/services/location_view_service_client.py new file mode 100644 index 000000000..42ce44b17 --- /dev/null +++ b/google/ads/google_ads/v1/services/location_view_service_client.py @@ -0,0 +1,216 @@ +# -*- 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 LocationViewService 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 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 + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', ).version + + +class LocationViewServiceClient(object): + """Service to fetch 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.v1.services.LocationViewService' + + @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: + LocationViewServiceClient: 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 location_view_path(cls, customer, location_view): + """Return a fully-qualified location_view string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/locationViews/{location_view}', + customer=customer, + location_view=location_view, + ) + + def __init__(self, + transport=None, + channel=None, + credentials=None, + client_config=None, + client_info=None): + """Constructor. + + Args: + transport (Union[~.LocationViewServiceGrpcTransport, + Callable[[~.Credentials, type], ~.LocationViewServiceGrpcTransport]): 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 = 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=location_view_service_grpc_transport. + LocationViewServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.') + self.transport = transport + else: + self.transport = location_view_service_grpc_transport.LocationViewServiceGrpcTransport( + 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_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. + 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.LocationView` 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_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, + ) + + 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) 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 new file mode 100644 index 000000000..a7c6b1eb7 --- /dev/null +++ b/google/ads/google_ads/v1/services/location_view_service_client_config.py @@ -0,0 +1,28 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.LocationViewService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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/v1/services/managed_placement_view_service_client.py new file mode 100644 index 000000000..ed1a93008 --- /dev/null +++ b/google/ads/google_ads/v1/services/managed_placement_view_service_client.py @@ -0,0 +1,217 @@ +# -*- 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 ManagedPlacementViewService 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 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 + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', ).version + + +class ManagedPlacementViewServiceClient(object): + """Service to manage Managed Placement 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.v1.services.ManagedPlacementViewService' + + @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: + ManagedPlacementViewServiceClient: 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 managed_placement_view_path(cls, customer, managed_placement_view): + """Return a fully-qualified managed_placement_view string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/managedPlacementViews/{managed_placement_view}', + customer=customer, + managed_placement_view=managed_placement_view, + ) + + def __init__(self, + transport=None, + channel=None, + credentials=None, + client_config=None, + client_info=None): + """Constructor. + + Args: + transport (Union[~.ManagedPlacementViewServiceGrpcTransport, + Callable[[~.Credentials, type], ~.ManagedPlacementViewServiceGrpcTransport]): 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 = managed_placement_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=managed_placement_view_service_grpc_transport + .ManagedPlacementViewServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.') + self.transport = transport + else: + self.transport = managed_placement_view_service_grpc_transport.ManagedPlacementViewServiceGrpcTransport( + 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_managed_placement_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 Managed Placement view in full detail. + + Args: + resource_name (str): 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. + 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.ManagedPlacementView` 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_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, + ) + + 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) 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 new file mode 100644 index 000000000..c09246358 --- /dev/null +++ b/google/ads/google_ads/v1/services/managed_placement_view_service_client_config.py @@ -0,0 +1,28 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.ManagedPlacementViewService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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 new file mode 100644 index 000000000..52d497d72 --- /dev/null +++ b/google/ads/google_ads/v1/services/media_file_service_client.py @@ -0,0 +1,278 @@ +# -*- 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 new file mode 100644 index 000000000..4439b0f0e --- /dev/null +++ b/google/ads/google_ads/v1/services/media_file_service_client_config.py @@ -0,0 +1,33 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.MediaFileService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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 new file mode 100644 index 000000000..2d69b667d --- /dev/null +++ b/google/ads/google_ads/v1/services/merchant_center_link_service_client.py @@ -0,0 +1,322 @@ +# -*- 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 new file mode 100644 index 000000000..a209ef67b --- /dev/null +++ b/google/ads/google_ads/v1/services/merchant_center_link_service_client_config.py @@ -0,0 +1,38 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.MerchantCenterLinkService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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/v1/services/mobile_app_category_constant_service_client.py new file mode 100644 index 000000000..6d97a4a0f --- /dev/null +++ b/google/ads/google_ads/v1/services/mobile_app_category_constant_service_client.py @@ -0,0 +1,217 @@ +# -*- 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 MobileAppCategoryConstantService 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 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 + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', ).version + + +class MobileAppCategoryConstantServiceClient(object): + """Service to fetch mobile app category 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.v1.services.MobileAppCategoryConstantService' + + @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: + MobileAppCategoryConstantServiceClient: 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 mobile_app_category_constant_path(cls, mobile_app_category_constant): + """Return a fully-qualified mobile_app_category_constant string.""" + return google.api_core.path_template.expand( + 'mobileAppCategoryConstants/{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): + """Constructor. + + Args: + transport (Union[~.MobileAppCategoryConstantServiceGrpcTransport, + Callable[[~.Credentials, type], ~.MobileAppCategoryConstantServiceGrpcTransport]): 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 = mobile_app_category_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= + mobile_app_category_constant_service_grpc_transport. + MobileAppCategoryConstantServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.') + self.transport = transport + else: + self.transport = mobile_app_category_constant_service_grpc_transport.MobileAppCategoryConstantServiceGrpcTransport( + 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_mobile_app_category_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 mobile app category constant. + + Args: + resource_name (str): 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. + 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.MobileAppCategoryConstant` 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_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, + ) + + 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) 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 new file mode 100644 index 000000000..eb728a9a5 --- /dev/null +++ b/google/ads/google_ads/v1/services/mobile_app_category_constant_service_client_config.py @@ -0,0 +1,28 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.MobileAppCategoryConstantService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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/v1/services/mobile_device_constant_service_client.py new file mode 100644 index 000000000..58364f2c6 --- /dev/null +++ b/google/ads/google_ads/v1/services/mobile_device_constant_service_client.py @@ -0,0 +1,216 @@ +# -*- 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 MobileDeviceConstantService 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 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 + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', ).version + + +class MobileDeviceConstantServiceClient(object): + """Service to fetch mobile device 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.v1.services.MobileDeviceConstantService' + + @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: + MobileDeviceConstantServiceClient: 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 mobile_device_constant_path(cls, mobile_device_constant): + """Return a fully-qualified mobile_device_constant string.""" + return google.api_core.path_template.expand( + 'mobileDeviceConstants/{mobile_device_constant}', + mobile_device_constant=mobile_device_constant, + ) + + def __init__(self, + transport=None, + channel=None, + credentials=None, + client_config=None, + client_info=None): + """Constructor. + + Args: + transport (Union[~.MobileDeviceConstantServiceGrpcTransport, + Callable[[~.Credentials, type], ~.MobileDeviceConstantServiceGrpcTransport]): 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 = mobile_device_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=mobile_device_constant_service_grpc_transport + .MobileDeviceConstantServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.') + self.transport = transport + else: + self.transport = mobile_device_constant_service_grpc_transport.MobileDeviceConstantServiceGrpcTransport( + 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_mobile_device_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 mobile device constant in full detail. + + Args: + resource_name (str): 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. + 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.MobileDeviceConstant` 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_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, + ) + + 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) 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 new file mode 100644 index 000000000..e6ec93a86 --- /dev/null +++ b/google/ads/google_ads/v1/services/mobile_device_constant_service_client_config.py @@ -0,0 +1,28 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.MobileDeviceConstantService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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 new file mode 100644 index 000000000..544e983ee --- /dev/null +++ b/google/ads/google_ads/v1/services/mutate_job_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.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 new file mode 100644 index 000000000..26f64469f --- /dev/null +++ b/google/ads/google_ads/v1/services/mutate_job_service_client_config.py @@ -0,0 +1,48 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.MutateJobService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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.py b/google/ads/google_ads/v1/services/operating_system_version_constant_service_client.py new file mode 100644 index 000000000..bf017b4cd --- /dev/null +++ b/google/ads/google_ads/v1/services/operating_system_version_constant_service_client.py @@ -0,0 +1,218 @@ +# -*- 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 OperatingSystemVersionConstantService 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 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 + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', ).version + + +class OperatingSystemVersionConstantServiceClient(object): + """Service to fetch Operating System Version 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.v1.services.OperatingSystemVersionConstantService' + + @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: + OperatingSystemVersionConstantServiceClient: 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 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): + """Constructor. + + Args: + transport (Union[~.OperatingSystemVersionConstantServiceGrpcTransport, + Callable[[~.Credentials, type], ~.OperatingSystemVersionConstantServiceGrpcTransport]): 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 = operating_system_version_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= + operating_system_version_constant_service_grpc_transport. + OperatingSystemVersionConstantServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.') + self.transport = transport + else: + self.transport = operating_system_version_constant_service_grpc_transport.OperatingSystemVersionConstantServiceGrpcTransport( + 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_operating_system_version_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 OS version constant in full detail. + + Args: + resource_name (str): 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. + 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.OperatingSystemVersionConstant` 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_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, + ) + + 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) 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 new file mode 100644 index 000000000..dcdd01919 --- /dev/null +++ b/google/ads/google_ads/v1/services/operating_system_version_constant_service_client_config.py @@ -0,0 +1,29 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.OperatingSystemVersionConstantService": + { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "methods": { + "GetOperatingSystemVersionConstant": { + "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/v1/services/parental_status_view_service_client.py new file mode 100644 index 000000000..366fed9e0 --- /dev/null +++ b/google/ads/google_ads/v1/services/parental_status_view_service_client.py @@ -0,0 +1,217 @@ +# -*- 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 ParentalStatusViewService 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 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 + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', ).version + + +class ParentalStatusViewServiceClient(object): + """Service to manage parental status 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.v1.services.ParentalStatusViewService' + + @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: + ParentalStatusViewServiceClient: 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 parental_status_view_path(cls, customer, parental_status_view): + """Return a fully-qualified parental_status_view string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/parentalStatusViews/{parental_status_view}', + customer=customer, + parental_status_view=parental_status_view, + ) + + def __init__(self, + transport=None, + channel=None, + credentials=None, + client_config=None, + client_info=None): + """Constructor. + + Args: + transport (Union[~.ParentalStatusViewServiceGrpcTransport, + Callable[[~.Credentials, type], ~.ParentalStatusViewServiceGrpcTransport]): 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 = parental_status_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=parental_status_view_service_grpc_transport. + ParentalStatusViewServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.') + self.transport = transport + else: + self.transport = parental_status_view_service_grpc_transport.ParentalStatusViewServiceGrpcTransport( + 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_parental_status_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 parental status view in full detail. + + Args: + resource_name (str): 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. + 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.ParentalStatusView` 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_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, + ) + + 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) 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 new file mode 100644 index 000000000..37efc99b4 --- /dev/null +++ b/google/ads/google_ads/v1/services/parental_status_view_service_client_config.py @@ -0,0 +1,28 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.ParentalStatusViewService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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 new file mode 100644 index 000000000..5f630c573 --- /dev/null +++ b/google/ads/google_ads/v1/services/payments_account_service_client.py @@ -0,0 +1,211 @@ +# -*- 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 new file mode 100644 index 000000000..e4f599c65 --- /dev/null +++ b/google/ads/google_ads/v1/services/payments_account_service_client_config.py @@ -0,0 +1,28 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.PaymentsAccountService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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/v1/services/product_bidding_category_constant_service_client.py new file mode 100644 index 000000000..b08d53ea4 --- /dev/null +++ b/google/ads/google_ads/v1/services/product_bidding_category_constant_service_client.py @@ -0,0 +1,218 @@ +# -*- 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 ProductBiddingCategoryConstantService 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 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 + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', ).version + + +class ProductBiddingCategoryConstantServiceClient(object): + """Service to fetch Product Bidding Categories.""" + + 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.ProductBiddingCategoryConstantService' + + @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: + ProductBiddingCategoryConstantServiceClient: 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 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): + """Constructor. + + Args: + transport (Union[~.ProductBiddingCategoryConstantServiceGrpcTransport, + Callable[[~.Credentials, type], ~.ProductBiddingCategoryConstantServiceGrpcTransport]): 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 = product_bidding_category_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= + product_bidding_category_constant_service_grpc_transport. + ProductBiddingCategoryConstantServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.') + self.transport = transport + else: + self.transport = product_bidding_category_constant_service_grpc_transport.ProductBiddingCategoryConstantServiceGrpcTransport( + 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_product_bidding_category_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 Product Bidding Category in full detail. + + Args: + resource_name (str): 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. + 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.ProductBiddingCategoryConstant` 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_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, + ) + + 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) 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 new file mode 100644 index 000000000..f9eb8e80b --- /dev/null +++ b/google/ads/google_ads/v1/services/product_bidding_category_constant_service_client_config.py @@ -0,0 +1,29 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.ProductBiddingCategoryConstantService": + { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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/v1/services/product_group_view_service_client.py new file mode 100644 index 000000000..072c4d21b --- /dev/null +++ b/google/ads/google_ads/v1/services/product_group_view_service_client.py @@ -0,0 +1,216 @@ +# -*- 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 ProductGroupViewService 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 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 + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', ).version + + +class ProductGroupViewServiceClient(object): + """Service to manage product group 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.v1.services.ProductGroupViewService' + + @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: + ProductGroupViewServiceClient: 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 product_group_view_path(cls, customer, product_group_view): + """Return a fully-qualified product_group_view string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/productGroupViews/{product_group_view}', + customer=customer, + product_group_view=product_group_view, + ) + + def __init__(self, + transport=None, + channel=None, + credentials=None, + client_config=None, + client_info=None): + """Constructor. + + Args: + transport (Union[~.ProductGroupViewServiceGrpcTransport, + Callable[[~.Credentials, type], ~.ProductGroupViewServiceGrpcTransport]): 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 = product_group_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=product_group_view_service_grpc_transport. + ProductGroupViewServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.') + self.transport = transport + else: + self.transport = product_group_view_service_grpc_transport.ProductGroupViewServiceGrpcTransport( + 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_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. + 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.ProductGroupView` 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_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, + ) + + 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) 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 new file mode 100644 index 000000000..4ba3ae62e --- /dev/null +++ b/google/ads/google_ads/v1/services/product_group_view_service_client_config.py @@ -0,0 +1,28 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.ProductGroupViewService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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 new file mode 100644 index 000000000..3ce9bba63 --- /dev/null +++ b/google/ads/google_ads/v1/services/recommendation_service_client.py @@ -0,0 +1,338 @@ +# -*- 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 new file mode 100644 index 000000000..4491d540f --- /dev/null +++ b/google/ads/google_ads/v1/services/recommendation_service_client_config.py @@ -0,0 +1,38 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.RecommendationService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "methods": { + "GetRecommendation": { + "timeout_millis": 600000, + "retry_codes_name": "idempotent", + "retry_params_name": "default" + }, + "ApplyRecommendation": { + "timeout_millis": 600000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "DismissRecommendation": { + "timeout_millis": 600000, + "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 new file mode 100644 index 000000000..cf1a8474c --- /dev/null +++ b/google/ads/google_ads/v1/services/remarketing_action_service_client.py @@ -0,0 +1,280 @@ +# -*- 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 new file mode 100644 index 000000000..eb83998a4 --- /dev/null +++ b/google/ads/google_ads/v1/services/remarketing_action_service_client_config.py @@ -0,0 +1,33 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.RemarketingActionService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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/v1/services/search_term_view_service_client.py new file mode 100644 index 000000000..fa3453753 --- /dev/null +++ b/google/ads/google_ads/v1/services/search_term_view_service_client.py @@ -0,0 +1,216 @@ +# -*- 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 SearchTermViewService 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 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 + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', ).version + + +class SearchTermViewServiceClient(object): + """Service to manage search term 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.v1.services.SearchTermViewService' + + @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: + SearchTermViewServiceClient: 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 search_term_view_path(cls, customer, search_term_view): + """Return a fully-qualified search_term_view string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/searchTermViews/{search_term_view}', + customer=customer, + search_term_view=search_term_view, + ) + + def __init__(self, + transport=None, + channel=None, + credentials=None, + client_config=None, + client_info=None): + """Constructor. + + Args: + transport (Union[~.SearchTermViewServiceGrpcTransport, + Callable[[~.Credentials, type], ~.SearchTermViewServiceGrpcTransport]): 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 = search_term_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=search_term_view_service_grpc_transport. + SearchTermViewServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.') + self.transport = transport + else: + self.transport = search_term_view_service_grpc_transport.SearchTermViewServiceGrpcTransport( + 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_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. + 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.SearchTermView` 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_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, + ) + + 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) 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 new file mode 100644 index 000000000..060a36cb7 --- /dev/null +++ b/google/ads/google_ads/v1/services/search_term_view_service_client_config.py @@ -0,0 +1,28 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.SearchTermViewService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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 new file mode 100644 index 000000000..4eaba0d7e --- /dev/null +++ b/google/ads/google_ads/v1/services/shared_criterion_service_client.py @@ -0,0 +1,279 @@ +# -*- 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 new file mode 100644 index 000000000..a229b0f49 --- /dev/null +++ b/google/ads/google_ads/v1/services/shared_criterion_service_client_config.py @@ -0,0 +1,33 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.SharedCriterionService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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 new file mode 100644 index 000000000..261aac54a --- /dev/null +++ b/google/ads/google_ads/v1/services/shared_set_service_client.py @@ -0,0 +1,278 @@ +# -*- 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 new file mode 100644 index 000000000..22fde48a7 --- /dev/null +++ b/google/ads/google_ads/v1/services/shared_set_service_client_config.py @@ -0,0 +1,33 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.SharedSetService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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/v1/services/shopping_performance_view_service_client.py new file mode 100644 index 000000000..396f28856 --- /dev/null +++ b/google/ads/google_ads/v1/services/shopping_performance_view_service_client.py @@ -0,0 +1,219 @@ +# -*- 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 ShoppingPerformanceViewService 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 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 + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', ).version + + +class ShoppingPerformanceViewServiceClient(object): + """Service to fetch Shopping performance 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.v1.services.ShoppingPerformanceViewService' + + @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: + ShoppingPerformanceViewServiceClient: 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 shopping_performance_view_path(cls, customer, + shopping_performance_view): + """Return a fully-qualified shopping_performance_view string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/shoppingPerformanceView/{shopping_performance_view}', + customer=customer, + shopping_performance_view=shopping_performance_view, + ) + + def __init__(self, + transport=None, + channel=None, + credentials=None, + client_config=None, + client_info=None): + """Constructor. + + Args: + transport (Union[~.ShoppingPerformanceViewServiceGrpcTransport, + Callable[[~.Credentials, type], ~.ShoppingPerformanceViewServiceGrpcTransport]): 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 = shopping_performance_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= + shopping_performance_view_service_grpc_transport. + ShoppingPerformanceViewServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.') + self.transport = transport + else: + self.transport = shopping_performance_view_service_grpc_transport.ShoppingPerformanceViewServiceGrpcTransport( + 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_shopping_performance_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 Shopping performance view in full detail. + + Args: + resource_name (str): 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. + 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.ShoppingPerformanceView` 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_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, + ) + + 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) 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 new file mode 100644 index 000000000..c34535f64 --- /dev/null +++ b/google/ads/google_ads/v1/services/shopping_performance_view_service_client_config.py @@ -0,0 +1,28 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.ShoppingPerformanceViewService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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.py b/google/ads/google_ads/v1/services/topic_constant_service_client.py new file mode 100644 index 000000000..16c3e2d00 --- /dev/null +++ b/google/ads/google_ads/v1/services/topic_constant_service_client.py @@ -0,0 +1,215 @@ +# -*- 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 TopicConstantService 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 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 + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', ).version + + +class TopicConstantServiceClient(object): + """Service to fetch topic 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.v1.services.TopicConstantService' + + @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: + TopicConstantServiceClient: 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 topic_constant_path(cls, topic_constant): + """Return a fully-qualified topic_constant string.""" + return google.api_core.path_template.expand( + 'topicConstants/{topic_constant}', + topic_constant=topic_constant, + ) + + def __init__(self, + transport=None, + channel=None, + credentials=None, + client_config=None, + client_info=None): + """Constructor. + + Args: + transport (Union[~.TopicConstantServiceGrpcTransport, + Callable[[~.Credentials, type], ~.TopicConstantServiceGrpcTransport]): 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 = topic_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=topic_constant_service_grpc_transport. + TopicConstantServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.') + self.transport = transport + else: + self.transport = topic_constant_service_grpc_transport.TopicConstantServiceGrpcTransport( + 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_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. + 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.TopicConstant` 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_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, + ) + + 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) 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 new file mode 100644 index 000000000..0443a04da --- /dev/null +++ b/google/ads/google_ads/v1/services/topic_constant_service_client_config.py @@ -0,0 +1,28 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.TopicConstantService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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/v1/services/topic_view_service_client.py new file mode 100644 index 000000000..0637eeb75 --- /dev/null +++ b/google/ads/google_ads/v1/services/topic_view_service_client.py @@ -0,0 +1,215 @@ +# -*- 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 TopicViewService 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 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 + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', ).version + + +class TopicViewServiceClient(object): + """Service to manage topic 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.v1.services.TopicViewService' + + @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: + TopicViewServiceClient: 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 topic_view_path(cls, customer, topic_view): + """Return a fully-qualified topic_view string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/topicViews/{topic_view}', + customer=customer, + topic_view=topic_view, + ) + + def __init__(self, + transport=None, + channel=None, + credentials=None, + client_config=None, + client_info=None): + """Constructor. + + Args: + transport (Union[~.TopicViewServiceGrpcTransport, + Callable[[~.Credentials, type], ~.TopicViewServiceGrpcTransport]): 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 = topic_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=topic_view_service_grpc_transport. + TopicViewServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.') + self.transport = transport + else: + self.transport = topic_view_service_grpc_transport.TopicViewServiceGrpcTransport( + 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_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. + 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.TopicView` 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_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, + ) + + 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) 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 new file mode 100644 index 000000000..5f172835f --- /dev/null +++ b/google/ads/google_ads/v1/services/topic_view_service_client_config.py @@ -0,0 +1,28 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.TopicViewService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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/v1/services/transports/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/google/ads/google_ads/v1/services/transports/account_budget_proposal_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/account_budget_proposal_service_grpc_transport.py new file mode 100644 index 000000000..6fcb46ca1 --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/account_budget_proposal_service_grpc_transport.py @@ -0,0 +1,134 @@ +# -*- 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 account_budget_proposal_service_pb2_grpc + + +class AccountBudgetProposalServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services AccountBudgetProposalService 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_budget_proposal_service_stub': + account_budget_proposal_service_pb2_grpc. + AccountBudgetProposalServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @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_budget_proposal(self): + """Return the gRPC stub for :meth:`AccountBudgetProposalServiceClient.get_account_budget_proposal`. + + Returns an account-level budget proposal in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'account_budget_proposal_service_stub'].GetAccountBudgetProposal + + @property + def mutate_account_budget_proposal(self): + """Return the gRPC stub for :meth:`AccountBudgetProposalServiceClient.mutate_account_budget_proposal`. + + Creates, updates, or removes account budget proposals. Operation statuses + are returned. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'account_budget_proposal_service_stub'].MutateAccountBudgetProposal diff --git a/google/ads/google_ads/v1/services/transports/account_budget_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/account_budget_service_grpc_transport.py new file mode 100644 index 000000000..b115c60fe --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/account_budget_service_grpc_transport.py @@ -0,0 +1,117 @@ +# -*- 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 account_budget_service_pb2_grpc + + +class AccountBudgetServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services AccountBudgetService 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_budget_service_stub': + account_budget_service_pb2_grpc.AccountBudgetServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @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_budget(self): + """Return the gRPC stub for :meth:`AccountBudgetServiceClient.get_account_budget`. + + Returns an account-level budget in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['account_budget_service_stub'].GetAccountBudget diff --git a/google/ads/google_ads/v1/services/transports/ad_group_ad_label_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/ad_group_ad_label_service_grpc_transport.py new file mode 100644 index 000000000..eb313bd4a --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/ad_group_ad_label_service_grpc_transport.py @@ -0,0 +1,133 @@ +# -*- 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 ad_group_ad_label_service_pb2_grpc + + +class AdGroupAdLabelServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services AdGroupAdLabelService 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_label_service_stub': + ad_group_ad_label_service_pb2_grpc.AdGroupAdLabelServiceStub( + channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @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_label(self): + """Return the gRPC stub for :meth:`AdGroupAdLabelServiceClient.get_ad_group_ad_label`. + + Returns the requested ad group ad label 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_label_service_stub'].GetAdGroupAdLabel + + @property + def mutate_ad_group_ad_labels(self): + """Return the gRPC stub for :meth:`AdGroupAdLabelServiceClient.mutate_ad_group_ad_labels`. + + Creates and removes ad group ad labels. + Operation statuses are returned. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'ad_group_ad_label_service_stub'].MutateAdGroupAdLabels diff --git a/google/ads/google_ads/v1/services/transports/ad_group_ad_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/ad_group_ad_service_grpc_transport.py new file mode 100644 index 000000000..a8b7f323a --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/ad_group_ad_service_grpc_transport.py @@ -0,0 +1,130 @@ +# -*- 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 ad_group_ad_service_pb2_grpc + + +class AdGroupAdServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services AdGroupAdService 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_service_stub': + ad_group_ad_service_pb2_grpc.AdGroupAdServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @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(self): + """Return the gRPC stub for :meth:`AdGroupAdServiceClient.get_ad_group_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_group_ad_service_stub'].GetAdGroupAd + + @property + def mutate_ad_group_ads(self): + """Return the gRPC stub for :meth:`AdGroupAdServiceClient.mutate_ad_group_ads`. + + Creates, updates, or removes ads. Operation statuses are returned. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['ad_group_ad_service_stub'].MutateAdGroupAds diff --git a/google/ads/google_ads/v1/services/transports/ad_group_audience_view_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/ad_group_audience_view_service_grpc_transport.py new file mode 100644 index 000000000..94d5a9543 --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/ad_group_audience_view_service_grpc_transport.py @@ -0,0 +1,119 @@ +# -*- 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 ad_group_audience_view_service_pb2_grpc + + +class AdGroupAudienceViewServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services AdGroupAudienceViewService 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_audience_view_service_stub': + ad_group_audience_view_service_pb2_grpc. + AdGroupAudienceViewServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @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_audience_view(self): + """Return the gRPC stub for :meth:`AdGroupAudienceViewServiceClient.get_ad_group_audience_view`. + + Returns the requested ad group audience 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_audience_view_service_stub'].GetAdGroupAudienceView diff --git a/google/ads/google_ads/v1/services/transports/ad_group_bid_modifier_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/ad_group_bid_modifier_service_grpc_transport.py new file mode 100644 index 000000000..a78a8acfc --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/ad_group_bid_modifier_service_grpc_transport.py @@ -0,0 +1,134 @@ +# -*- 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 ad_group_bid_modifier_service_pb2_grpc + + +class AdGroupBidModifierServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services AdGroupBidModifierService 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_bid_modifier_service_stub': + ad_group_bid_modifier_service_pb2_grpc. + AdGroupBidModifierServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @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_bid_modifier(self): + """Return the gRPC stub for :meth:`AdGroupBidModifierServiceClient.get_ad_group_bid_modifier`. + + Returns the requested ad group bid modifier 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_bid_modifier_service_stub'].GetAdGroupBidModifier + + @property + def mutate_ad_group_bid_modifiers(self): + """Return the gRPC stub for :meth:`AdGroupBidModifierServiceClient.mutate_ad_group_bid_modifiers`. + + Creates, updates, or removes ad group bid modifiers. + Operation statuses are returned. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'ad_group_bid_modifier_service_stub'].MutateAdGroupBidModifiers diff --git a/google/ads/google_ads/v1/services/transports/ad_group_criterion_label_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/ad_group_criterion_label_service_grpc_transport.py new file mode 100644 index 000000000..3c06cce43 --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/ad_group_criterion_label_service_grpc_transport.py @@ -0,0 +1,134 @@ +# -*- 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 ad_group_criterion_label_service_pb2_grpc + + +class AdGroupCriterionLabelServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services AdGroupCriterionLabelService 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_criterion_label_service_stub': + ad_group_criterion_label_service_pb2_grpc. + AdGroupCriterionLabelServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @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_criterion_label(self): + """Return the gRPC stub for :meth:`AdGroupCriterionLabelServiceClient.get_ad_group_criterion_label`. + + Returns the requested ad group criterion label 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_criterion_label_service_stub'].GetAdGroupCriterionLabel + + @property + def mutate_ad_group_criterion_labels(self): + """Return the gRPC stub for :meth:`AdGroupCriterionLabelServiceClient.mutate_ad_group_criterion_labels`. + + Creates and removes ad group criterion labels. + Operation statuses are returned. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'ad_group_criterion_label_service_stub'].MutateAdGroupCriterionLabels diff --git a/google/ads/google_ads/v1/services/transports/ad_group_criterion_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/ad_group_criterion_service_grpc_transport.py new file mode 100644 index 000000000..f9745d85e --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/ad_group_criterion_service_grpc_transport.py @@ -0,0 +1,133 @@ +# -*- 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 ad_group_criterion_service_pb2_grpc + + +class AdGroupCriterionServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services AdGroupCriterionService 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_criterion_service_stub': + ad_group_criterion_service_pb2_grpc.AdGroupCriterionServiceStub( + channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @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_criterion(self): + """Return the gRPC stub for :meth:`AdGroupCriterionServiceClient.get_ad_group_criterion`. + + Returns the requested criterion 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_criterion_service_stub'].GetAdGroupCriterion + + @property + def mutate_ad_group_criteria(self): + """Return the gRPC stub for :meth:`AdGroupCriterionServiceClient.mutate_ad_group_criteria`. + + Creates, updates, or removes criteria. Operation statuses are returned. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'ad_group_criterion_service_stub'].MutateAdGroupCriteria diff --git a/google/ads/google_ads/v1/services/transports/ad_group_extension_setting_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/ad_group_extension_setting_service_grpc_transport.py new file mode 100644 index 000000000..c433b5673 --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/ad_group_extension_setting_service_grpc_transport.py @@ -0,0 +1,134 @@ +# -*- 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 ad_group_extension_setting_service_pb2_grpc + + +class AdGroupExtensionSettingServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services AdGroupExtensionSettingService 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_extension_setting_service_stub': + ad_group_extension_setting_service_pb2_grpc. + AdGroupExtensionSettingServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @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_extension_setting(self): + """Return the gRPC stub for :meth:`AdGroupExtensionSettingServiceClient.get_ad_group_extension_setting`. + + Returns the requested ad group extension setting 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_extension_setting_service_stub'].GetAdGroupExtensionSetting + + @property + def mutate_ad_group_extension_settings(self): + """Return the gRPC stub for :meth:`AdGroupExtensionSettingServiceClient.mutate_ad_group_extension_settings`. + + Creates, updates, or removes ad group extension settings. Operation + statuses are returned. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'ad_group_extension_setting_service_stub'].MutateAdGroupExtensionSettings diff --git a/google/ads/google_ads/v1/services/transports/ad_group_feed_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/ad_group_feed_service_grpc_transport.py new file mode 100644 index 000000000..880fd95da --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/ad_group_feed_service_grpc_transport.py @@ -0,0 +1,131 @@ +# -*- 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 ad_group_feed_service_pb2_grpc + + +class AdGroupFeedServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services AdGroupFeedService 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_feed_service_stub': + ad_group_feed_service_pb2_grpc.AdGroupFeedServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @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_feed(self): + """Return the gRPC stub for :meth:`AdGroupFeedServiceClient.get_ad_group_feed`. + + Returns the requested ad group feed 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_feed_service_stub'].GetAdGroupFeed + + @property + def mutate_ad_group_feeds(self): + """Return the gRPC stub for :meth:`AdGroupFeedServiceClient.mutate_ad_group_feeds`. + + Creates, updates, or removes ad group feeds. Operation statuses are + returned. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['ad_group_feed_service_stub'].MutateAdGroupFeeds diff --git a/google/ads/google_ads/v1/services/transports/ad_group_label_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/ad_group_label_service_grpc_transport.py new file mode 100644 index 000000000..977da3148 --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/ad_group_label_service_grpc_transport.py @@ -0,0 +1,131 @@ +# -*- 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 ad_group_label_service_pb2_grpc + + +class AdGroupLabelServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services AdGroupLabelService 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_label_service_stub': + ad_group_label_service_pb2_grpc.AdGroupLabelServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @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_label(self): + """Return the gRPC stub for :meth:`AdGroupLabelServiceClient.get_ad_group_label`. + + Returns the requested ad group label 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_label_service_stub'].GetAdGroupLabel + + @property + def mutate_ad_group_labels(self): + """Return the gRPC stub for :meth:`AdGroupLabelServiceClient.mutate_ad_group_labels`. + + Creates and removes ad group labels. + Operation statuses are returned. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['ad_group_label_service_stub'].MutateAdGroupLabels diff --git a/google/ads/google_ads/v1/services/transports/ad_group_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/ad_group_service_grpc_transport.py new file mode 100644 index 000000000..d712afd7b --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/ad_group_service_grpc_transport.py @@ -0,0 +1,130 @@ +# -*- 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 ad_group_service_pb2_grpc + + +class AdGroupServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services AdGroupService 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_service_stub': + ad_group_service_pb2_grpc.AdGroupServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @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(self): + """Return the gRPC stub for :meth:`AdGroupServiceClient.get_ad_group`. + + Returns the requested ad group 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_service_stub'].GetAdGroup + + @property + def mutate_ad_groups(self): + """Return the gRPC stub for :meth:`AdGroupServiceClient.mutate_ad_groups`. + + Creates, updates, or removes ad groups. Operation statuses are returned. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['ad_group_service_stub'].MutateAdGroups diff --git a/google/ads/google_ads/v1/services/transports/ad_parameter_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/ad_parameter_service_grpc_transport.py new file mode 100644 index 000000000..baa73f20e --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/ad_parameter_service_grpc_transport.py @@ -0,0 +1,131 @@ +# -*- 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 ad_parameter_service_pb2_grpc + + +class AdParameterServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services AdParameterService 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_parameter_service_stub': + ad_parameter_service_pb2_grpc.AdParameterServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @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_parameter(self): + """Return the gRPC stub for :meth:`AdParameterServiceClient.get_ad_parameter`. + + Returns the requested ad parameter in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['ad_parameter_service_stub'].GetAdParameter + + @property + def mutate_ad_parameters(self): + """Return the gRPC stub for :meth:`AdParameterServiceClient.mutate_ad_parameters`. + + Creates, updates, or removes ad parameters. Operation statuses are + returned. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['ad_parameter_service_stub'].MutateAdParameters diff --git a/google/ads/google_ads/v1/services/transports/ad_schedule_view_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/ad_schedule_view_service_grpc_transport.py new file mode 100644 index 000000000..345e5d21e --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/ad_schedule_view_service_grpc_transport.py @@ -0,0 +1,118 @@ +# -*- 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 ad_schedule_view_service_pb2_grpc + + +class AdScheduleViewServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services AdScheduleViewService 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_schedule_view_service_stub': + ad_schedule_view_service_pb2_grpc.AdScheduleViewServiceStub( + channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @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_schedule_view(self): + """Return the gRPC stub for :meth:`AdScheduleViewServiceClient.get_ad_schedule_view`. + + Returns the requested ad schedule 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_schedule_view_service_stub'].GetAdScheduleView diff --git a/google/ads/google_ads/v1/services/transports/age_range_view_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/age_range_view_service_grpc_transport.py new file mode 100644 index 000000000..d77eeb8bc --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/age_range_view_service_grpc_transport.py @@ -0,0 +1,117 @@ +# -*- 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 age_range_view_service_pb2_grpc + + +class AgeRangeViewServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services AgeRangeViewService 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 = { + 'age_range_view_service_stub': + age_range_view_service_pb2_grpc.AgeRangeViewServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_age_range_view(self): + """Return the gRPC stub for :meth:`AgeRangeViewServiceClient.get_age_range_view`. + + Returns the requested age 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['age_range_view_service_stub'].GetAgeRangeView diff --git a/google/ads/google_ads/v1/services/transports/bidding_strategy_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/bidding_strategy_service_grpc_transport.py new file mode 100644 index 000000000..cf201af70 --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/bidding_strategy_service_grpc_transport.py @@ -0,0 +1,133 @@ +# -*- 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 bidding_strategy_service_pb2_grpc + + +class BiddingStrategyServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services BiddingStrategyService 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 = { + 'bidding_strategy_service_stub': + bidding_strategy_service_pb2_grpc.BiddingStrategyServiceStub( + channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_bidding_strategy(self): + """Return the gRPC stub for :meth:`BiddingStrategyServiceClient.get_bidding_strategy`. + + Returns the requested bidding strategy in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['bidding_strategy_service_stub'].GetBiddingStrategy + + @property + def mutate_bidding_strategies(self): + """Return the gRPC stub for :meth:`BiddingStrategyServiceClient.mutate_bidding_strategies`. + + Creates, updates, or removes bidding strategies. Operation statuses are + returned. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'bidding_strategy_service_stub'].MutateBiddingStrategies diff --git a/google/ads/google_ads/v1/services/transports/billing_setup_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/billing_setup_service_grpc_transport.py new file mode 100644 index 000000000..b399922e6 --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/billing_setup_service_grpc_transport.py @@ -0,0 +1,130 @@ +# -*- 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 billing_setup_service_pb2_grpc + + +class BillingSetupServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services BillingSetupService 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 = { + 'billing_setup_service_stub': + billing_setup_service_pb2_grpc.BillingSetupServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_billing_setup(self): + """Return the gRPC stub for :meth:`BillingSetupServiceClient.get_billing_setup`. + + Returns a billing setup. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['billing_setup_service_stub'].GetBillingSetup + + @property + def mutate_billing_setup(self): + """Return the gRPC stub for :meth:`BillingSetupServiceClient.mutate_billing_setup`. + + Creates a billing setup, or cancels an existing billing setup. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['billing_setup_service_stub'].MutateBillingSetup diff --git a/google/ads/google_ads/v1/services/transports/campaign_audience_view_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/campaign_audience_view_service_grpc_transport.py new file mode 100644 index 000000000..0216332c5 --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/campaign_audience_view_service_grpc_transport.py @@ -0,0 +1,119 @@ +# -*- 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 campaign_audience_view_service_pb2_grpc + + +class CampaignAudienceViewServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services CampaignAudienceViewService 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 = { + 'campaign_audience_view_service_stub': + campaign_audience_view_service_pb2_grpc. + CampaignAudienceViewServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_campaign_audience_view(self): + """Return the gRPC stub for :meth:`CampaignAudienceViewServiceClient.get_campaign_audience_view`. + + Returns the requested campaign audience view in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'campaign_audience_view_service_stub'].GetCampaignAudienceView diff --git a/google/ads/google_ads/v1/services/transports/campaign_bid_modifier_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/campaign_bid_modifier_service_grpc_transport.py new file mode 100644 index 000000000..99c710dd5 --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/campaign_bid_modifier_service_grpc_transport.py @@ -0,0 +1,134 @@ +# -*- 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 campaign_bid_modifier_service_pb2_grpc + + +class CampaignBidModifierServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services CampaignBidModifierService 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 = { + 'campaign_bid_modifier_service_stub': + campaign_bid_modifier_service_pb2_grpc. + CampaignBidModifierServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_campaign_bid_modifier(self): + """Return the gRPC stub for :meth:`CampaignBidModifierServiceClient.get_campaign_bid_modifier`. + + Returns the requested campaign bid modifier in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'campaign_bid_modifier_service_stub'].GetCampaignBidModifier + + @property + def mutate_campaign_bid_modifiers(self): + """Return the gRPC stub for :meth:`CampaignBidModifierServiceClient.mutate_campaign_bid_modifiers`. + + Creates, updates, or removes campaign bid modifiers. + Operation statuses are returned. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'campaign_bid_modifier_service_stub'].MutateCampaignBidModifiers diff --git a/google/ads/google_ads/v1/services/transports/campaign_budget_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/campaign_budget_service_grpc_transport.py new file mode 100644 index 000000000..d7bd76f24 --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/campaign_budget_service_grpc_transport.py @@ -0,0 +1,133 @@ +# -*- 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 campaign_budget_service_pb2_grpc + + +class CampaignBudgetServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services CampaignBudgetService 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 = { + 'campaign_budget_service_stub': + campaign_budget_service_pb2_grpc.CampaignBudgetServiceStub( + channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_campaign_budget(self): + """Return the gRPC stub for :meth:`CampaignBudgetServiceClient.get_campaign_budget`. + + Returns the requested Campaign Budget in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['campaign_budget_service_stub'].GetCampaignBudget + + @property + def mutate_campaign_budgets(self): + """Return the gRPC stub for :meth:`CampaignBudgetServiceClient.mutate_campaign_budgets`. + + Creates, updates, or removes campaign budgets. Operation statuses are + returned. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'campaign_budget_service_stub'].MutateCampaignBudgets diff --git a/google/ads/google_ads/v1/services/transports/campaign_criterion_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/campaign_criterion_service_grpc_transport.py new file mode 100644 index 000000000..dd3dc27ea --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/campaign_criterion_service_grpc_transport.py @@ -0,0 +1,133 @@ +# -*- 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 campaign_criterion_service_pb2_grpc + + +class CampaignCriterionServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services CampaignCriterionService 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 = { + 'campaign_criterion_service_stub': + campaign_criterion_service_pb2_grpc.CampaignCriterionServiceStub( + channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_campaign_criterion(self): + """Return the gRPC stub for :meth:`CampaignCriterionServiceClient.get_campaign_criterion`. + + Returns the requested criterion in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'campaign_criterion_service_stub'].GetCampaignCriterion + + @property + def mutate_campaign_criteria(self): + """Return the gRPC stub for :meth:`CampaignCriterionServiceClient.mutate_campaign_criteria`. + + Creates, updates, or removes criteria. Operation statuses are returned. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'campaign_criterion_service_stub'].MutateCampaignCriteria diff --git a/google/ads/google_ads/v1/services/transports/campaign_criterion_simulation_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/campaign_criterion_simulation_service_grpc_transport.py new file mode 100644 index 000000000..a8a4b511d --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/campaign_criterion_simulation_service_grpc_transport.py @@ -0,0 +1,119 @@ +# -*- 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 campaign_criterion_simulation_service_pb2_grpc + + +class CampaignCriterionSimulationServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services CampaignCriterionSimulationService 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 = { + 'campaign_criterion_simulation_service_stub': + campaign_criterion_simulation_service_pb2_grpc. + CampaignCriterionSimulationServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_campaign_criterion_simulation(self): + """Return the gRPC stub for :meth:`CampaignCriterionSimulationServiceClient.get_campaign_criterion_simulation`. + + Returns the requested campaign criterion simulation in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'campaign_criterion_simulation_service_stub'].GetCampaignCriterionSimulation diff --git a/google/ads/google_ads/v1/services/transports/campaign_extension_setting_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/campaign_extension_setting_service_grpc_transport.py new file mode 100644 index 000000000..69d0d7cca --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/campaign_extension_setting_service_grpc_transport.py @@ -0,0 +1,134 @@ +# -*- 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 campaign_extension_setting_service_pb2_grpc + + +class CampaignExtensionSettingServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services CampaignExtensionSettingService 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 = { + 'campaign_extension_setting_service_stub': + campaign_extension_setting_service_pb2_grpc. + CampaignExtensionSettingServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_campaign_extension_setting(self): + """Return the gRPC stub for :meth:`CampaignExtensionSettingServiceClient.get_campaign_extension_setting`. + + Returns the requested campaign extension setting in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'campaign_extension_setting_service_stub'].GetCampaignExtensionSetting + + @property + def mutate_campaign_extension_settings(self): + """Return the gRPC stub for :meth:`CampaignExtensionSettingServiceClient.mutate_campaign_extension_settings`. + + Creates, updates, or removes campaign extension settings. Operation + statuses are returned. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'campaign_extension_setting_service_stub'].MutateCampaignExtensionSettings diff --git a/google/ads/google_ads/v1/services/transports/campaign_feed_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/campaign_feed_service_grpc_transport.py new file mode 100644 index 000000000..dfff12a3b --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/campaign_feed_service_grpc_transport.py @@ -0,0 +1,131 @@ +# -*- 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 campaign_feed_service_pb2_grpc + + +class CampaignFeedServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services CampaignFeedService 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 = { + 'campaign_feed_service_stub': + campaign_feed_service_pb2_grpc.CampaignFeedServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_campaign_feed(self): + """Return the gRPC stub for :meth:`CampaignFeedServiceClient.get_campaign_feed`. + + Returns the requested campaign feed in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['campaign_feed_service_stub'].GetCampaignFeed + + @property + def mutate_campaign_feeds(self): + """Return the gRPC stub for :meth:`CampaignFeedServiceClient.mutate_campaign_feeds`. + + Creates, updates, or removes campaign feeds. Operation statuses are + returned. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['campaign_feed_service_stub'].MutateCampaignFeeds diff --git a/google/ads/google_ads/v1/services/transports/campaign_label_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/campaign_label_service_grpc_transport.py new file mode 100644 index 000000000..92d1e4480 --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/campaign_label_service_grpc_transport.py @@ -0,0 +1,131 @@ +# -*- 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 campaign_label_service_pb2_grpc + + +class CampaignLabelServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services CampaignLabelService 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 = { + 'campaign_label_service_stub': + campaign_label_service_pb2_grpc.CampaignLabelServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_campaign_label(self): + """Return the gRPC stub for :meth:`CampaignLabelServiceClient.get_campaign_label`. + + Returns the requested campaign-label relationship in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['campaign_label_service_stub'].GetCampaignLabel + + @property + def mutate_campaign_labels(self): + """Return the gRPC stub for :meth:`CampaignLabelServiceClient.mutate_campaign_labels`. + + Creates and removes campaign-label relationships. + Operation statuses are returned. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['campaign_label_service_stub'].MutateCampaignLabels diff --git a/google/ads/google_ads/v1/services/transports/campaign_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/campaign_service_grpc_transport.py new file mode 100644 index 000000000..c46ffa5e4 --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/campaign_service_grpc_transport.py @@ -0,0 +1,130 @@ +# -*- 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 campaign_service_pb2_grpc + + +class CampaignServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services CampaignService 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 = { + 'campaign_service_stub': + campaign_service_pb2_grpc.CampaignServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_campaign(self): + """Return the gRPC stub for :meth:`CampaignServiceClient.get_campaign`. + + Returns the requested campaign in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['campaign_service_stub'].GetCampaign + + @property + def mutate_campaigns(self): + """Return the gRPC stub for :meth:`CampaignServiceClient.mutate_campaigns`. + + Creates, updates, or removes campaigns. Operation statuses are returned. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['campaign_service_stub'].MutateCampaigns diff --git a/google/ads/google_ads/v1/services/transports/campaign_shared_set_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/campaign_shared_set_service_grpc_transport.py new file mode 100644 index 000000000..3ac8a4d5a --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/campaign_shared_set_service_grpc_transport.py @@ -0,0 +1,133 @@ +# -*- 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 campaign_shared_set_service_pb2_grpc + + +class CampaignSharedSetServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services CampaignSharedSetService 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 = { + 'campaign_shared_set_service_stub': + campaign_shared_set_service_pb2_grpc.CampaignSharedSetServiceStub( + channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_campaign_shared_set(self): + """Return the gRPC stub for :meth:`CampaignSharedSetServiceClient.get_campaign_shared_set`. + + Returns the requested campaign shared set in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'campaign_shared_set_service_stub'].GetCampaignSharedSet + + @property + def mutate_campaign_shared_sets(self): + """Return the gRPC stub for :meth:`CampaignSharedSetServiceClient.mutate_campaign_shared_sets`. + + Creates or removes campaign shared sets. Operation statuses are returned. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'campaign_shared_set_service_stub'].MutateCampaignSharedSets diff --git a/google/ads/google_ads/v1/services/transports/carrier_constant_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/carrier_constant_service_grpc_transport.py new file mode 100644 index 000000000..6dabc65c1 --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/carrier_constant_service_grpc_transport.py @@ -0,0 +1,118 @@ +# -*- 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 carrier_constant_service_pb2_grpc + + +class CarrierConstantServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services CarrierConstantService 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 = { + 'carrier_constant_service_stub': + carrier_constant_service_pb2_grpc.CarrierConstantServiceStub( + channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_carrier_constant(self): + """Return the gRPC stub for :meth:`CarrierConstantServiceClient.get_carrier_constant`. + + Returns the requested carrier constant in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['carrier_constant_service_stub'].GetCarrierConstant diff --git a/google/ads/google_ads/v1/services/transports/change_status_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/change_status_service_grpc_transport.py new file mode 100644 index 000000000..c3d1a108e --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/change_status_service_grpc_transport.py @@ -0,0 +1,117 @@ +# -*- 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 change_status_service_pb2_grpc + + +class ChangeStatusServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services ChangeStatusService 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 = { + 'change_status_service_stub': + change_status_service_pb2_grpc.ChangeStatusServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_change_status(self): + """Return the gRPC stub for :meth:`ChangeStatusServiceClient.get_change_status`. + + Returns the requested change status in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['change_status_service_stub'].GetChangeStatus diff --git a/google/ads/google_ads/v1/services/transports/click_view_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/click_view_service_grpc_transport.py new file mode 100644 index 000000000..b03966988 --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/click_view_service_grpc_transport.py @@ -0,0 +1,117 @@ +# -*- 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 click_view_service_pb2_grpc + + +class ClickViewServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services ClickViewService 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 = { + 'click_view_service_stub': + click_view_service_pb2_grpc.ClickViewServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_click_view(self): + """Return the gRPC stub for :meth:`ClickViewServiceClient.get_click_view`. + + Returns the requested click view in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['click_view_service_stub'].GetClickView diff --git a/google/ads/google_ads/v1/services/transports/conversion_action_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/conversion_action_service_grpc_transport.py new file mode 100644 index 000000000..ec5be5939 --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/conversion_action_service_grpc_transport.py @@ -0,0 +1,134 @@ +# -*- 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 conversion_action_service_pb2_grpc + + +class ConversionActionServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services ConversionActionService 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 = { + 'conversion_action_service_stub': + conversion_action_service_pb2_grpc.ConversionActionServiceStub( + channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_conversion_action(self): + """Return the gRPC stub for :meth:`ConversionActionServiceClient.get_conversion_action`. + + Returns the requested conversion action. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'conversion_action_service_stub'].GetConversionAction + + @property + def mutate_conversion_actions(self): + """Return the gRPC stub for :meth:`ConversionActionServiceClient.mutate_conversion_actions`. + + Creates, updates or removes conversion actions. Operation statuses are + returned. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'conversion_action_service_stub'].MutateConversionActions diff --git a/google/ads/google_ads/v1/services/transports/conversion_upload_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/conversion_upload_service_grpc_transport.py new file mode 100644 index 000000000..1754307d1 --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/conversion_upload_service_grpc_transport.py @@ -0,0 +1,119 @@ +# -*- 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 conversion_upload_service_pb2_grpc + + +class ConversionUploadServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services ConversionUploadService 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 = { + 'conversion_upload_service_stub': + conversion_upload_service_pb2_grpc.ConversionUploadServiceStub( + channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def upload_click_conversions(self): + """Return the gRPC stub for :meth:`ConversionUploadServiceClient.upload_click_conversions`. + + Processes the given click conversions. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'conversion_upload_service_stub'].UploadClickConversions diff --git a/google/ads/google_ads/v1/services/transports/custom_interest_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/custom_interest_service_grpc_transport.py new file mode 100644 index 000000000..a7360f3ba --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/custom_interest_service_grpc_transport.py @@ -0,0 +1,132 @@ +# -*- 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 custom_interest_service_pb2_grpc + + +class CustomInterestServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services CustomInterestService 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 = { + 'custom_interest_service_stub': + custom_interest_service_pb2_grpc.CustomInterestServiceStub( + channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_custom_interest(self): + """Return the gRPC stub for :meth:`CustomInterestServiceClient.get_custom_interest`. + + Returns the requested custom interest in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['custom_interest_service_stub'].GetCustomInterest + + @property + def mutate_custom_interests(self): + """Return the gRPC stub for :meth:`CustomInterestServiceClient.mutate_custom_interests`. + + Creates or updates custom interests. Operation statuses are returned. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'custom_interest_service_stub'].MutateCustomInterests diff --git a/google/ads/google_ads/v1/services/transports/customer_client_link_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/customer_client_link_service_grpc_transport.py new file mode 100644 index 000000000..5f476b15e --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/customer_client_link_service_grpc_transport.py @@ -0,0 +1,133 @@ +# -*- 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 customer_client_link_service_pb2_grpc + + +class CustomerClientLinkServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services CustomerClientLinkService 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 = { + 'customer_client_link_service_stub': + customer_client_link_service_pb2_grpc. + CustomerClientLinkServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_customer_client_link(self): + """Return the gRPC stub for :meth:`CustomerClientLinkServiceClient.get_customer_client_link`. + + Returns the requested CustomerClientLink in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'customer_client_link_service_stub'].GetCustomerClientLink + + @property + def mutate_customer_client_link(self): + """Return the gRPC stub for :meth:`CustomerClientLinkServiceClient.mutate_customer_client_link`. + + Creates or updates a customer client link. Operation statuses are returned. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'customer_client_link_service_stub'].MutateCustomerClientLink diff --git a/google/ads/google_ads/v1/services/transports/customer_client_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/customer_client_service_grpc_transport.py new file mode 100644 index 000000000..5fffb0a72 --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/customer_client_service_grpc_transport.py @@ -0,0 +1,118 @@ +# -*- 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 customer_client_service_pb2_grpc + + +class CustomerClientServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services CustomerClientService 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 = { + 'customer_client_service_stub': + customer_client_service_pb2_grpc.CustomerClientServiceStub( + channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_customer_client(self): + """Return the gRPC stub for :meth:`CustomerClientServiceClient.get_customer_client`. + + Returns the requested client in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['customer_client_service_stub'].GetCustomerClient diff --git a/google/ads/google_ads/v1/services/transports/customer_extension_setting_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/customer_extension_setting_service_grpc_transport.py new file mode 100644 index 000000000..488d8a370 --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/customer_extension_setting_service_grpc_transport.py @@ -0,0 +1,134 @@ +# -*- 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 customer_extension_setting_service_pb2_grpc + + +class CustomerExtensionSettingServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services CustomerExtensionSettingService 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 = { + 'customer_extension_setting_service_stub': + customer_extension_setting_service_pb2_grpc. + CustomerExtensionSettingServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_customer_extension_setting(self): + """Return the gRPC stub for :meth:`CustomerExtensionSettingServiceClient.get_customer_extension_setting`. + + Returns the requested customer extension setting in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'customer_extension_setting_service_stub'].GetCustomerExtensionSetting + + @property + def mutate_customer_extension_settings(self): + """Return the gRPC stub for :meth:`CustomerExtensionSettingServiceClient.mutate_customer_extension_settings`. + + Creates, updates, or removes customer extension settings. Operation + statuses are returned. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'customer_extension_setting_service_stub'].MutateCustomerExtensionSettings diff --git a/google/ads/google_ads/v1/services/transports/customer_feed_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/customer_feed_service_grpc_transport.py new file mode 100644 index 000000000..eaf7a1539 --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/customer_feed_service_grpc_transport.py @@ -0,0 +1,131 @@ +# -*- 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 customer_feed_service_pb2_grpc + + +class CustomerFeedServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services CustomerFeedService 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 = { + 'customer_feed_service_stub': + customer_feed_service_pb2_grpc.CustomerFeedServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_customer_feed(self): + """Return the gRPC stub for :meth:`CustomerFeedServiceClient.get_customer_feed`. + + Returns the requested customer feed in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['customer_feed_service_stub'].GetCustomerFeed + + @property + def mutate_customer_feeds(self): + """Return the gRPC stub for :meth:`CustomerFeedServiceClient.mutate_customer_feeds`. + + Creates, updates, or removes customer feeds. Operation statuses are + returned. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['customer_feed_service_stub'].MutateCustomerFeeds diff --git a/google/ads/google_ads/v1/services/transports/customer_label_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/customer_label_service_grpc_transport.py new file mode 100644 index 000000000..ed72a70a2 --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/customer_label_service_grpc_transport.py @@ -0,0 +1,131 @@ +# -*- 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 customer_label_service_pb2_grpc + + +class CustomerLabelServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services CustomerLabelService 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 = { + 'customer_label_service_stub': + customer_label_service_pb2_grpc.CustomerLabelServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_customer_label(self): + """Return the gRPC stub for :meth:`CustomerLabelServiceClient.get_customer_label`. + + Returns the requested customer-label relationship in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['customer_label_service_stub'].GetCustomerLabel + + @property + def mutate_customer_labels(self): + """Return the gRPC stub for :meth:`CustomerLabelServiceClient.mutate_customer_labels`. + + Creates and removes customer-label relationships. + Operation statuses are returned. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['customer_label_service_stub'].MutateCustomerLabels diff --git a/google/ads/google_ads/v1/services/transports/customer_manager_link_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/customer_manager_link_service_grpc_transport.py new file mode 100644 index 000000000..30ae7c7af --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/customer_manager_link_service_grpc_transport.py @@ -0,0 +1,133 @@ +# -*- 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 customer_manager_link_service_pb2_grpc + + +class CustomerManagerLinkServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services CustomerManagerLinkService 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 = { + 'customer_manager_link_service_stub': + customer_manager_link_service_pb2_grpc. + CustomerManagerLinkServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_customer_manager_link(self): + """Return the gRPC stub for :meth:`CustomerManagerLinkServiceClient.get_customer_manager_link`. + + Returns the requested CustomerManagerLink in full detail. + + 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'].GetCustomerManagerLink + + @property + def mutate_customer_manager_link(self): + """Return the gRPC stub for :meth:`CustomerManagerLinkServiceClient.mutate_customer_manager_link`. + + Creates or updates customer manager links. Operation statuses are returned. + + 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'].MutateCustomerManagerLink diff --git a/google/ads/google_ads/v1/services/transports/customer_negative_criterion_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/customer_negative_criterion_service_grpc_transport.py new file mode 100644 index 000000000..a7f5096d3 --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/customer_negative_criterion_service_grpc_transport.py @@ -0,0 +1,133 @@ +# -*- 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 customer_negative_criterion_service_pb2_grpc + + +class CustomerNegativeCriterionServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services CustomerNegativeCriterionService 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 = { + 'customer_negative_criterion_service_stub': + customer_negative_criterion_service_pb2_grpc. + CustomerNegativeCriterionServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_customer_negative_criterion(self): + """Return the gRPC stub for :meth:`CustomerNegativeCriterionServiceClient.get_customer_negative_criterion`. + + Returns the requested criterion in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'customer_negative_criterion_service_stub'].GetCustomerNegativeCriterion + + @property + def mutate_customer_negative_criteria(self): + """Return the gRPC stub for :meth:`CustomerNegativeCriterionServiceClient.mutate_customer_negative_criteria`. + + Creates or removes criteria. Operation statuses are returned. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'customer_negative_criterion_service_stub'].MutateCustomerNegativeCriteria diff --git a/google/ads/google_ads/v1/services/transports/customer_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/customer_service_grpc_transport.py new file mode 100644 index 000000000..323f9c0c2 --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/customer_service_grpc_transport.py @@ -0,0 +1,157 @@ +# -*- 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 customer_service_pb2_grpc + + +class CustomerServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services CustomerService 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 = { + 'customer_service_stub': + customer_service_pb2_grpc.CustomerServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_customer(self): + """Return the gRPC stub for :meth:`CustomerServiceClient.get_customer`. + + Returns the requested customer in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['customer_service_stub'].GetCustomer + + @property + def mutate_customer(self): + """Return the gRPC stub for :meth:`CustomerServiceClient.mutate_customer`. + + Updates a customer. Operation statuses are returned. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['customer_service_stub'].MutateCustomer + + @property + def list_accessible_customers(self): + """Return the gRPC stub for :meth:`CustomerServiceClient.list_accessible_customers`. + + Returns resource names of customers directly accessible by the + user authenticating the call. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['customer_service_stub'].ListAccessibleCustomers + + @property + def create_customer_client(self): + """Return the gRPC stub for :meth:`CustomerServiceClient.create_customer_client`. + + Creates a new client under manager. The new client customer is returned. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['customer_service_stub'].CreateCustomerClient diff --git a/google/ads/google_ads/v1/services/transports/detail_placement_view_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/detail_placement_view_service_grpc_transport.py new file mode 100644 index 000000000..472f4301e --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/detail_placement_view_service_grpc_transport.py @@ -0,0 +1,119 @@ +# -*- 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 detail_placement_view_service_pb2_grpc + + +class DetailPlacementViewServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services DetailPlacementViewService 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 = { + 'detail_placement_view_service_stub': + detail_placement_view_service_pb2_grpc. + DetailPlacementViewServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_detail_placement_view(self): + """Return the gRPC stub for :meth:`DetailPlacementViewServiceClient.get_detail_placement_view`. + + Returns the requested Detail Placement view in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'detail_placement_view_service_stub'].GetDetailPlacementView diff --git a/google/ads/google_ads/v1/services/transports/display_keyword_view_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/display_keyword_view_service_grpc_transport.py new file mode 100644 index 000000000..a01485413 --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/display_keyword_view_service_grpc_transport.py @@ -0,0 +1,119 @@ +# -*- 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 display_keyword_view_service_pb2_grpc + + +class DisplayKeywordViewServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services DisplayKeywordViewService 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 = { + 'display_keyword_view_service_stub': + display_keyword_view_service_pb2_grpc. + DisplayKeywordViewServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_display_keyword_view(self): + """Return the gRPC stub for :meth:`DisplayKeywordViewServiceClient.get_display_keyword_view`. + + Returns the requested display keyword view in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'display_keyword_view_service_stub'].GetDisplayKeywordView diff --git a/google/ads/google_ads/v1/services/transports/domain_category_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/domain_category_service_grpc_transport.py new file mode 100644 index 000000000..50dcd384b --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/domain_category_service_grpc_transport.py @@ -0,0 +1,118 @@ +# -*- 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 domain_category_service_pb2_grpc + + +class DomainCategoryServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services DomainCategoryService 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 = { + 'domain_category_service_stub': + domain_category_service_pb2_grpc.DomainCategoryServiceStub( + channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_domain_category(self): + """Return the gRPC stub for :meth:`DomainCategoryServiceClient.get_domain_category`. + + Returns the requested domain category. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['domain_category_service_stub'].GetDomainCategory 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/v1/services/transports/dynamic_search_ads_search_term_view_service_grpc_transport.py new file mode 100644 index 000000000..a0c04ed6e --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/dynamic_search_ads_search_term_view_service_grpc_transport.py @@ -0,0 +1,119 @@ +# -*- 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 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. + + 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 = { + 'dynamic_search_ads_search_term_view_service_stub': + dynamic_search_ads_search_term_view_service_pb2_grpc. + DynamicSearchAdsSearchTermViewServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_dynamic_search_ads_search_term_view(self): + """Return the gRPC stub for :meth:`DynamicSearchAdsSearchTermViewServiceClient.get_dynamic_search_ads_search_term_view`. + + Returns the requested dynamic search ads search term view in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'dynamic_search_ads_search_term_view_service_stub'].GetDynamicSearchAdsSearchTermView diff --git a/google/ads/google_ads/v1/services/transports/extension_feed_item_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/extension_feed_item_service_grpc_transport.py new file mode 100644 index 000000000..d59d81c27 --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/extension_feed_item_service_grpc_transport.py @@ -0,0 +1,134 @@ +# -*- 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 extension_feed_item_service_pb2_grpc + + +class ExtensionFeedItemServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services ExtensionFeedItemService 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 = { + 'extension_feed_item_service_stub': + extension_feed_item_service_pb2_grpc.ExtensionFeedItemServiceStub( + channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_extension_feed_item(self): + """Return the gRPC stub for :meth:`ExtensionFeedItemServiceClient.get_extension_feed_item`. + + Returns the requested extension feed item in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'extension_feed_item_service_stub'].GetExtensionFeedItem + + @property + def mutate_extension_feed_items(self): + """Return the gRPC stub for :meth:`ExtensionFeedItemServiceClient.mutate_extension_feed_items`. + + Creates, updates, or removes extension feed items. Operation + statuses are returned. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'extension_feed_item_service_stub'].MutateExtensionFeedItems diff --git a/google/ads/google_ads/v1/services/transports/feed_item_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/feed_item_service_grpc_transport.py new file mode 100644 index 000000000..f2c23ef8f --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/feed_item_service_grpc_transport.py @@ -0,0 +1,131 @@ +# -*- 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 feed_item_service_pb2_grpc + + +class FeedItemServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services FeedItemService 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 = { + 'feed_item_service_stub': + feed_item_service_pb2_grpc.FeedItemServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_feed_item(self): + """Return the gRPC stub for :meth:`FeedItemServiceClient.get_feed_item`. + + Returns the requested feed item in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['feed_item_service_stub'].GetFeedItem + + @property + def mutate_feed_items(self): + """Return the gRPC stub for :meth:`FeedItemServiceClient.mutate_feed_items`. + + Creates, updates, or removes feed items. Operation statuses are + returned. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['feed_item_service_stub'].MutateFeedItems diff --git a/google/ads/google_ads/v1/services/transports/feed_item_target_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/feed_item_target_service_grpc_transport.py new file mode 100644 index 000000000..1d90bc424 --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/feed_item_target_service_grpc_transport.py @@ -0,0 +1,132 @@ +# -*- 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 feed_item_target_service_pb2_grpc + + +class FeedItemTargetServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services FeedItemTargetService 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 = { + 'feed_item_target_service_stub': + feed_item_target_service_pb2_grpc.FeedItemTargetServiceStub( + channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_feed_item_target(self): + """Return the gRPC stub for :meth:`FeedItemTargetServiceClient.get_feed_item_target`. + + Returns the requested feed item targets in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['feed_item_target_service_stub'].GetFeedItemTarget + + @property + def mutate_feed_item_targets(self): + """Return the gRPC stub for :meth:`FeedItemTargetServiceClient.mutate_feed_item_targets`. + + Creates or removes feed item targets. Operation statuses are returned. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'feed_item_target_service_stub'].MutateFeedItemTargets diff --git a/google/ads/google_ads/v1/services/transports/feed_mapping_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/feed_mapping_service_grpc_transport.py new file mode 100644 index 000000000..b61987455 --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/feed_mapping_service_grpc_transport.py @@ -0,0 +1,131 @@ +# -*- 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 feed_mapping_service_pb2_grpc + + +class FeedMappingServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services FeedMappingService 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 = { + 'feed_mapping_service_stub': + feed_mapping_service_pb2_grpc.FeedMappingServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_feed_mapping(self): + """Return the gRPC stub for :meth:`FeedMappingServiceClient.get_feed_mapping`. + + Returns the requested feed mapping in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['feed_mapping_service_stub'].GetFeedMapping + + @property + def mutate_feed_mappings(self): + """Return the gRPC stub for :meth:`FeedMappingServiceClient.mutate_feed_mappings`. + + Creates or removes feed mappings. Operation statuses are + returned. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['feed_mapping_service_stub'].MutateFeedMappings diff --git a/google/ads/google_ads/v1/services/transports/feed_placeholder_view_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/feed_placeholder_view_service_grpc_transport.py new file mode 100644 index 000000000..772a242ee --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/feed_placeholder_view_service_grpc_transport.py @@ -0,0 +1,119 @@ +# -*- 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 feed_placeholder_view_service_pb2_grpc + + +class FeedPlaceholderViewServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services FeedPlaceholderViewService 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 = { + 'feed_placeholder_view_service_stub': + feed_placeholder_view_service_pb2_grpc. + FeedPlaceholderViewServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_feed_placeholder_view(self): + """Return the gRPC stub for :meth:`FeedPlaceholderViewServiceClient.get_feed_placeholder_view`. + + Returns the requested feed placeholder view in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'feed_placeholder_view_service_stub'].GetFeedPlaceholderView diff --git a/google/ads/google_ads/v1/services/transports/feed_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/feed_service_grpc_transport.py new file mode 100644 index 000000000..2fcef959a --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/feed_service_grpc_transport.py @@ -0,0 +1,131 @@ +# -*- 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 feed_service_pb2_grpc + + +class FeedServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services FeedService 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 = { + 'feed_service_stub': + feed_service_pb2_grpc.FeedServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_feed(self): + """Return the gRPC stub for :meth:`FeedServiceClient.get_feed`. + + Returns the requested feed in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['feed_service_stub'].GetFeed + + @property + def mutate_feeds(self): + """Return the gRPC stub for :meth:`FeedServiceClient.mutate_feeds`. + + Creates, updates, or removes feeds. Operation statuses are + returned. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['feed_service_stub'].MutateFeeds diff --git a/google/ads/google_ads/v1/services/transports/gender_view_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/gender_view_service_grpc_transport.py new file mode 100644 index 000000000..39c168515 --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/gender_view_service_grpc_transport.py @@ -0,0 +1,117 @@ +# -*- 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 gender_view_service_pb2_grpc + + +class GenderViewServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services GenderViewService 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 = { + 'gender_view_service_stub': + gender_view_service_pb2_grpc.GenderViewServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_gender_view(self): + """Return the gRPC stub for :meth:`GenderViewServiceClient.get_gender_view`. + + Returns the requested gender view in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['gender_view_service_stub'].GetGenderView diff --git a/google/ads/google_ads/v1/services/transports/geo_target_constant_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/geo_target_constant_service_grpc_transport.py new file mode 100644 index 000000000..b18244bc2 --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/geo_target_constant_service_grpc_transport.py @@ -0,0 +1,133 @@ +# -*- 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 geo_target_constant_service_pb2_grpc + + +class GeoTargetConstantServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services GeoTargetConstantService 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 = { + 'geo_target_constant_service_stub': + geo_target_constant_service_pb2_grpc.GeoTargetConstantServiceStub( + channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_geo_target_constant(self): + """Return the gRPC stub for :meth:`GeoTargetConstantServiceClient.get_geo_target_constant`. + + Returns the requested geo target constant in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'geo_target_constant_service_stub'].GetGeoTargetConstant + + @property + def suggest_geo_target_constants(self): + """Return the gRPC stub for :meth:`GeoTargetConstantServiceClient.suggest_geo_target_constants`. + + Returns GeoTargetConstant suggestions by location name or by resource name. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'geo_target_constant_service_stub'].SuggestGeoTargetConstants diff --git a/google/ads/google_ads/v1/services/transports/geographic_view_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/geographic_view_service_grpc_transport.py new file mode 100644 index 000000000..6ed6ca50a --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/geographic_view_service_grpc_transport.py @@ -0,0 +1,118 @@ +# -*- 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 geographic_view_service_pb2_grpc + + +class GeographicViewServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services GeographicViewService 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 = { + 'geographic_view_service_stub': + geographic_view_service_pb2_grpc.GeographicViewServiceStub( + channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_geographic_view(self): + """Return the gRPC stub for :meth:`GeographicViewServiceClient.get_geographic_view`. + + Returns the requested geographic view in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['geographic_view_service_stub'].GetGeographicView diff --git a/google/ads/google_ads/v1/services/transports/google_ads_field_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/google_ads_field_service_grpc_transport.py new file mode 100644 index 000000000..b2507e67a --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/google_ads_field_service_grpc_transport.py @@ -0,0 +1,132 @@ +# -*- 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 google_ads_field_service_pb2_grpc + + +class GoogleAdsFieldServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services GoogleAdsFieldService 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 = { + 'google_ads_field_service_stub': + google_ads_field_service_pb2_grpc.GoogleAdsFieldServiceStub( + channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_google_ads_field(self): + """Return the gRPC stub for :meth:`GoogleAdsFieldServiceClient.get_google_ads_field`. + + Returns just the requested field. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['google_ads_field_service_stub'].GetGoogleAdsField + + @property + def search_google_ads_fields(self): + """Return the gRPC stub for :meth:`GoogleAdsFieldServiceClient.search_google_ads_fields`. + + Returns all fields that match the search query. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'google_ads_field_service_stub'].SearchGoogleAdsFields diff --git a/google/ads/google_ads/v1/services/transports/google_ads_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/google_ads_service_grpc_transport.py new file mode 100644 index 000000000..d57ccc49f --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/google_ads_service_grpc_transport.py @@ -0,0 +1,130 @@ +# -*- 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 google_ads_service_pb2_grpc + + +class GoogleAdsServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services GoogleAdsService 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 = { + 'google_ads_service_stub': + google_ads_service_pb2_grpc.GoogleAdsServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def search(self): + """Return the gRPC stub for :meth:`GoogleAdsServiceClient.search`. + + Returns all rows that match the search 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'].Search + + @property + def mutate(self): + """Return the gRPC stub for :meth:`GoogleAdsServiceClient.mutate`. + + Creates, updates, or removes resources. Operation statuses are returned. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['google_ads_service_stub'].Mutate diff --git a/google/ads/google_ads/v1/services/transports/group_placement_view_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/group_placement_view_service_grpc_transport.py new file mode 100644 index 000000000..51697e625 --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/group_placement_view_service_grpc_transport.py @@ -0,0 +1,119 @@ +# -*- 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 group_placement_view_service_pb2_grpc + + +class GroupPlacementViewServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services GroupPlacementViewService 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 = { + 'group_placement_view_service_stub': + group_placement_view_service_pb2_grpc. + GroupPlacementViewServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_group_placement_view(self): + """Return the gRPC stub for :meth:`GroupPlacementViewServiceClient.get_group_placement_view`. + + Returns the requested Group Placement view in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'group_placement_view_service_stub'].GetGroupPlacementView diff --git a/google/ads/google_ads/v1/services/transports/hotel_group_view_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/hotel_group_view_service_grpc_transport.py new file mode 100644 index 000000000..347972a38 --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/hotel_group_view_service_grpc_transport.py @@ -0,0 +1,118 @@ +# -*- 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 hotel_group_view_service_pb2_grpc + + +class HotelGroupViewServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services HotelGroupViewService 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 = { + 'hotel_group_view_service_stub': + hotel_group_view_service_pb2_grpc.HotelGroupViewServiceStub( + channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_hotel_group_view(self): + """Return the gRPC stub for :meth:`HotelGroupViewServiceClient.get_hotel_group_view`. + + Returns the requested Hotel Group View in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['hotel_group_view_service_stub'].GetHotelGroupView diff --git a/google/ads/google_ads/v1/services/transports/hotel_performance_view_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/hotel_performance_view_service_grpc_transport.py new file mode 100644 index 000000000..6bda7c89b --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/hotel_performance_view_service_grpc_transport.py @@ -0,0 +1,119 @@ +# -*- 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 hotel_performance_view_service_pb2_grpc + + +class HotelPerformanceViewServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services HotelPerformanceViewService 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 = { + 'hotel_performance_view_service_stub': + hotel_performance_view_service_pb2_grpc. + HotelPerformanceViewServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_hotel_performance_view(self): + """Return the gRPC stub for :meth:`HotelPerformanceViewServiceClient.get_hotel_performance_view`. + + Returns the requested Hotel Performance View in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'hotel_performance_view_service_stub'].GetHotelPerformanceView diff --git a/google/ads/google_ads/v1/services/transports/keyword_plan_ad_group_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/keyword_plan_ad_group_service_grpc_transport.py new file mode 100644 index 000000000..1ace2d7a3 --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/keyword_plan_ad_group_service_grpc_transport.py @@ -0,0 +1,134 @@ +# -*- 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_ad_group_service_pb2_grpc + + +class KeywordPlanAdGroupServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services KeywordPlanAdGroupService 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_service_stub': + keyword_plan_ad_group_service_pb2_grpc. + KeywordPlanAdGroupServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @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(self): + """Return the gRPC stub for :meth:`KeywordPlanAdGroupServiceClient.get_keyword_plan_ad_group`. + + Returns the requested Keyword Plan ad group 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_service_stub'].GetKeywordPlanAdGroup + + @property + def mutate_keyword_plan_ad_groups(self): + """Return the gRPC stub for :meth:`KeywordPlanAdGroupServiceClient.mutate_keyword_plan_ad_groups`. + + Creates, updates, or removes Keyword Plan ad groups. 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_service_stub'].MutateKeywordPlanAdGroups diff --git a/google/ads/google_ads/v1/services/transports/keyword_plan_campaign_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/keyword_plan_campaign_service_grpc_transport.py new file mode 100644 index 000000000..d1c36e151 --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/keyword_plan_campaign_service_grpc_transport.py @@ -0,0 +1,134 @@ +# -*- 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_campaign_service_pb2_grpc + + +class KeywordPlanCampaignServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services KeywordPlanCampaignService 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_service_stub': + keyword_plan_campaign_service_pb2_grpc. + KeywordPlanCampaignServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @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(self): + """Return the gRPC stub for :meth:`KeywordPlanCampaignServiceClient.get_keyword_plan_campaign`. + + Returns the requested Keyword Plan campaign 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_service_stub'].GetKeywordPlanCampaign + + @property + def mutate_keyword_plan_campaigns(self): + """Return the gRPC stub for :meth:`KeywordPlanCampaignServiceClient.mutate_keyword_plan_campaigns`. + + Creates, updates, or removes Keyword Plan campaigns. 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_service_stub'].MutateKeywordPlanCampaigns diff --git a/google/ads/google_ads/v1/services/transports/keyword_plan_idea_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/keyword_plan_idea_service_grpc_transport.py new file mode 100644 index 000000000..9f9b17002 --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/keyword_plan_idea_service_grpc_transport.py @@ -0,0 +1,119 @@ +# -*- 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_idea_service_pb2_grpc + + +class KeywordPlanIdeaServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services KeywordPlanIdeaService 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_idea_service_stub': + keyword_plan_idea_service_pb2_grpc.KeywordPlanIdeaServiceStub( + channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def generate_keyword_ideas(self): + """Return the gRPC stub for :meth:`KeywordPlanIdeaServiceClient.generate_keyword_ideas`. + + Returns a list of keyword ideas. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'keyword_plan_idea_service_stub'].GenerateKeywordIdeas 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 new file mode 100644 index 000000000..a768540ba --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/keyword_plan_keyword_service_grpc_transport.py @@ -0,0 +1,134 @@ +# -*- 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): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @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 new file mode 100644 index 000000000..747d33aeb --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/keyword_plan_negative_keyword_service_grpc_transport.py @@ -0,0 +1,134 @@ +# -*- 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): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @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/keyword_plan_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/keyword_plan_service_grpc_transport.py new file mode 100644 index 000000000..69ac3b5d5 --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/keyword_plan_service_grpc_transport.py @@ -0,0 +1,158 @@ +# -*- 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_service_pb2_grpc + + +class KeywordPlanServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services KeywordPlanService 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_service_stub': + keyword_plan_service_pb2_grpc.KeywordPlanServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @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(self): + """Return the gRPC stub for :meth:`KeywordPlanServiceClient.get_keyword_plan`. + + 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_service_stub'].GetKeywordPlan + + @property + def mutate_keyword_plans(self): + """Return the gRPC stub for :meth:`KeywordPlanServiceClient.mutate_keyword_plans`. + + Creates, updates, or removes keyword plans. 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_service_stub'].MutateKeywordPlans + + @property + def generate_forecast_metrics(self): + """Return the gRPC stub for :meth:`KeywordPlanServiceClient.generate_forecast_metrics`. + + Returns the requested Keyword Plan forecasts. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['keyword_plan_service_stub'].GenerateForecastMetrics + + @property + def generate_historical_metrics(self): + """Return the gRPC stub for :meth:`KeywordPlanServiceClient.generate_historical_metrics`. + + Returns the requested Keyword Plan historical metrics. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'keyword_plan_service_stub'].GenerateHistoricalMetrics diff --git a/google/ads/google_ads/v1/services/transports/keyword_view_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/keyword_view_service_grpc_transport.py new file mode 100644 index 000000000..054191445 --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/keyword_view_service_grpc_transport.py @@ -0,0 +1,117 @@ +# -*- 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_view_service_pb2_grpc + + +class KeywordViewServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services KeywordViewService 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_view_service_stub': + keyword_view_service_pb2_grpc.KeywordViewServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @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_view(self): + """Return the gRPC stub for :meth:`KeywordViewServiceClient.get_keyword_view`. + + Returns the requested keyword view in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['keyword_view_service_stub'].GetKeywordView diff --git a/google/ads/google_ads/v1/services/transports/label_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/label_service_grpc_transport.py new file mode 100644 index 000000000..bc2f554c9 --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/label_service_grpc_transport.py @@ -0,0 +1,130 @@ +# -*- 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 label_service_pb2_grpc + + +class LabelServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services LabelService 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 = { + 'label_service_stub': + label_service_pb2_grpc.LabelServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_label(self): + """Return the gRPC stub for :meth:`LabelServiceClient.get_label`. + + Returns the requested label in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['label_service_stub'].GetLabel + + @property + def mutate_labels(self): + """Return the gRPC stub for :meth:`LabelServiceClient.mutate_labels`. + + Creates, updates, or removes labels. Operation statuses are returned. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['label_service_stub'].MutateLabels diff --git a/google/ads/google_ads/v1/services/transports/language_constant_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/language_constant_service_grpc_transport.py new file mode 100644 index 000000000..7de29e968 --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/language_constant_service_grpc_transport.py @@ -0,0 +1,119 @@ +# -*- 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 language_constant_service_pb2_grpc + + +class LanguageConstantServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services LanguageConstantService 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 = { + 'language_constant_service_stub': + language_constant_service_pb2_grpc.LanguageConstantServiceStub( + channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_language_constant(self): + """Return the gRPC stub for :meth:`LanguageConstantServiceClient.get_language_constant`. + + Returns the requested language constant. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'language_constant_service_stub'].GetLanguageConstant diff --git a/google/ads/google_ads/v1/services/transports/location_view_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/location_view_service_grpc_transport.py new file mode 100644 index 000000000..2d88bbce6 --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/location_view_service_grpc_transport.py @@ -0,0 +1,117 @@ +# -*- 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 location_view_service_pb2_grpc + + +class LocationViewServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services LocationViewService 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 = { + 'location_view_service_stub': + location_view_service_pb2_grpc.LocationViewServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_location_view(self): + """Return the gRPC stub for :meth:`LocationViewServiceClient.get_location_view`. + + Returns the requested 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['location_view_service_stub'].GetLocationView diff --git a/google/ads/google_ads/v1/services/transports/managed_placement_view_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/managed_placement_view_service_grpc_transport.py new file mode 100644 index 000000000..b0ea5351e --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/managed_placement_view_service_grpc_transport.py @@ -0,0 +1,119 @@ +# -*- 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 managed_placement_view_service_pb2_grpc + + +class ManagedPlacementViewServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services ManagedPlacementViewService 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 = { + 'managed_placement_view_service_stub': + managed_placement_view_service_pb2_grpc. + ManagedPlacementViewServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_managed_placement_view(self): + """Return the gRPC stub for :meth:`ManagedPlacementViewServiceClient.get_managed_placement_view`. + + Returns the requested Managed Placement view in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'managed_placement_view_service_stub'].GetManagedPlacementView diff --git a/google/ads/google_ads/v1/services/transports/media_file_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/media_file_service_grpc_transport.py new file mode 100644 index 000000000..0e9ac8a5b --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/media_file_service_grpc_transport.py @@ -0,0 +1,130 @@ +# -*- 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 media_file_service_pb2_grpc + + +class MediaFileServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services MediaFileService 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 = { + 'media_file_service_stub': + media_file_service_pb2_grpc.MediaFileServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_media_file(self): + """Return the gRPC stub for :meth:`MediaFileServiceClient.get_media_file`. + + Returns the requested media file in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['media_file_service_stub'].GetMediaFile + + @property + def mutate_media_files(self): + """Return the gRPC stub for :meth:`MediaFileServiceClient.mutate_media_files`. + + Creates media files. Operation statuses are returned. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['media_file_service_stub'].MutateMediaFiles diff --git a/google/ads/google_ads/v1/services/transports/merchant_center_link_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/merchant_center_link_service_grpc_transport.py new file mode 100644 index 000000000..a5770ab79 --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/merchant_center_link_service_grpc_transport.py @@ -0,0 +1,147 @@ +# -*- 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 merchant_center_link_service_pb2_grpc + + +class MerchantCenterLinkServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services MerchantCenterLinkService 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 = { + 'merchant_center_link_service_stub': + merchant_center_link_service_pb2_grpc. + MerchantCenterLinkServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + 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: + 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 + + @property + def get_merchant_center_link(self): + """Return the gRPC stub for :meth:`MerchantCenterLinkServiceClient.get_merchant_center_link`. + + Returns the Merchant Center link in full detail. + + 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'].GetMerchantCenterLink + + @property + def mutate_merchant_center_link(self): + """Return the gRPC stub for :meth:`MerchantCenterLinkServiceClient.mutate_merchant_center_link`. + + Updates status or removes a Merchant Center link. + + 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'].MutateMerchantCenterLink diff --git a/google/ads/google_ads/v1/services/transports/mobile_app_category_constant_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/mobile_app_category_constant_service_grpc_transport.py new file mode 100644 index 000000000..89a901d8e --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/mobile_app_category_constant_service_grpc_transport.py @@ -0,0 +1,119 @@ +# -*- 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 mobile_app_category_constant_service_pb2_grpc + + +class MobileAppCategoryConstantServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services MobileAppCategoryConstantService 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 = { + 'mobile_app_category_constant_service_stub': + mobile_app_category_constant_service_pb2_grpc. + MobileAppCategoryConstantServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_mobile_app_category_constant(self): + """Return the gRPC stub for :meth:`MobileAppCategoryConstantServiceClient.get_mobile_app_category_constant`. + + Returns the requested mobile app category constant. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'mobile_app_category_constant_service_stub'].GetMobileAppCategoryConstant diff --git a/google/ads/google_ads/v1/services/transports/mobile_device_constant_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/mobile_device_constant_service_grpc_transport.py new file mode 100644 index 000000000..d3fe2be7e --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/mobile_device_constant_service_grpc_transport.py @@ -0,0 +1,119 @@ +# -*- 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 mobile_device_constant_service_pb2_grpc + + +class MobileDeviceConstantServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services MobileDeviceConstantService 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 = { + 'mobile_device_constant_service_stub': + mobile_device_constant_service_pb2_grpc. + MobileDeviceConstantServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_mobile_device_constant(self): + """Return the gRPC stub for :meth:`MobileDeviceConstantServiceClient.get_mobile_device_constant`. + + Returns the requested mobile device constant in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'mobile_device_constant_service_stub'].GetMobileDeviceConstant 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 new file mode 100644 index 000000000..ff1280385 --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/mutate_job_service_grpc_transport.py @@ -0,0 +1,181 @@ +# -*- 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): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @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/transports/operating_system_version_constant_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/operating_system_version_constant_service_grpc_transport.py new file mode 100644 index 000000000..509296bfc --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/operating_system_version_constant_service_grpc_transport.py @@ -0,0 +1,119 @@ +# -*- 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 operating_system_version_constant_service_pb2_grpc + + +class OperatingSystemVersionConstantServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services OperatingSystemVersionConstantService 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 = { + 'operating_system_version_constant_service_stub': + operating_system_version_constant_service_pb2_grpc. + OperatingSystemVersionConstantServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_operating_system_version_constant(self): + """Return the gRPC stub for :meth:`OperatingSystemVersionConstantServiceClient.get_operating_system_version_constant`. + + Returns the requested OS version constant in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'operating_system_version_constant_service_stub'].GetOperatingSystemVersionConstant diff --git a/google/ads/google_ads/v1/services/transports/parental_status_view_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/parental_status_view_service_grpc_transport.py new file mode 100644 index 000000000..98928be03 --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/parental_status_view_service_grpc_transport.py @@ -0,0 +1,119 @@ +# -*- 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 parental_status_view_service_pb2_grpc + + +class ParentalStatusViewServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services ParentalStatusViewService 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 = { + 'parental_status_view_service_stub': + parental_status_view_service_pb2_grpc. + ParentalStatusViewServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_parental_status_view(self): + """Return the gRPC stub for :meth:`ParentalStatusViewServiceClient.get_parental_status_view`. + + Returns the requested parental status view in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'parental_status_view_service_stub'].GetParentalStatusView diff --git a/google/ads/google_ads/v1/services/transports/payments_account_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/payments_account_service_grpc_transport.py new file mode 100644 index 000000000..62b077ffd --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/payments_account_service_grpc_transport.py @@ -0,0 +1,121 @@ +# -*- 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 payments_account_service_pb2_grpc + + +class PaymentsAccountServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services PaymentsAccountService 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 = { + 'payments_account_service_stub': + payments_account_service_pb2_grpc.PaymentsAccountServiceStub( + channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def list_payments_accounts(self): + """Return the gRPC stub for :meth:`PaymentsAccountServiceClient.list_payments_accounts`. + + Returns all Payments accounts associated with all managers + between the login customer ID and specified serving customer in the + hierarchy, inclusive. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'payments_account_service_stub'].ListPaymentsAccounts diff --git a/google/ads/google_ads/v1/services/transports/product_bidding_category_constant_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/product_bidding_category_constant_service_grpc_transport.py new file mode 100644 index 000000000..fd7363643 --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/product_bidding_category_constant_service_grpc_transport.py @@ -0,0 +1,119 @@ +# -*- 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 product_bidding_category_constant_service_pb2_grpc + + +class ProductBiddingCategoryConstantServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services ProductBiddingCategoryConstantService 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 = { + 'product_bidding_category_constant_service_stub': + product_bidding_category_constant_service_pb2_grpc. + ProductBiddingCategoryConstantServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_product_bidding_category_constant(self): + """Return the gRPC stub for :meth:`ProductBiddingCategoryConstantServiceClient.get_product_bidding_category_constant`. + + Returns the requested Product Bidding Category in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'product_bidding_category_constant_service_stub'].GetProductBiddingCategoryConstant diff --git a/google/ads/google_ads/v1/services/transports/product_group_view_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/product_group_view_service_grpc_transport.py new file mode 100644 index 000000000..6185b15ba --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/product_group_view_service_grpc_transport.py @@ -0,0 +1,119 @@ +# -*- 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 product_group_view_service_pb2_grpc + + +class ProductGroupViewServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services ProductGroupViewService 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 = { + 'product_group_view_service_stub': + product_group_view_service_pb2_grpc.ProductGroupViewServiceStub( + channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_product_group_view(self): + """Return the gRPC stub for :meth:`ProductGroupViewServiceClient.get_product_group_view`. + + Returns the requested product group view in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'product_group_view_service_stub'].GetProductGroupView diff --git a/google/ads/google_ads/v1/services/transports/recommendation_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/recommendation_service_grpc_transport.py new file mode 100644 index 000000000..2090463d8 --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/recommendation_service_grpc_transport.py @@ -0,0 +1,143 @@ +# -*- 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 recommendation_service_pb2_grpc + + +class RecommendationServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services RecommendationService 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 = { + 'recommendation_service_stub': + recommendation_service_pb2_grpc.RecommendationServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_recommendation(self): + """Return the gRPC stub for :meth:`RecommendationServiceClient.get_recommendation`. + + Returns the requested recommendation in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['recommendation_service_stub'].GetRecommendation + + @property + def apply_recommendation(self): + """Return the gRPC stub for :meth:`RecommendationServiceClient.apply_recommendation`. + + Applies given recommendations with corresponding apply parameters. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['recommendation_service_stub'].ApplyRecommendation + + @property + def dismiss_recommendation(self): + """Return the gRPC stub for :meth:`RecommendationServiceClient.dismiss_recommendation`. + + Dismisses given recommendations. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['recommendation_service_stub'].DismissRecommendation diff --git a/google/ads/google_ads/v1/services/transports/remarketing_action_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/remarketing_action_service_grpc_transport.py new file mode 100644 index 000000000..7fd058e28 --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/remarketing_action_service_grpc_transport.py @@ -0,0 +1,133 @@ +# -*- 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 remarketing_action_service_pb2_grpc + + +class RemarketingActionServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services RemarketingActionService 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 = { + 'remarketing_action_service_stub': + remarketing_action_service_pb2_grpc.RemarketingActionServiceStub( + channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_remarketing_action(self): + """Return the gRPC stub for :meth:`RemarketingActionServiceClient.get_remarketing_action`. + + Returns the requested remarketing action in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'remarketing_action_service_stub'].GetRemarketingAction + + @property + def mutate_remarketing_actions(self): + """Return the gRPC stub for :meth:`RemarketingActionServiceClient.mutate_remarketing_actions`. + + Creates or updates remarketing actions. Operation statuses are returned. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'remarketing_action_service_stub'].MutateRemarketingActions diff --git a/google/ads/google_ads/v1/services/transports/search_term_view_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/search_term_view_service_grpc_transport.py new file mode 100644 index 000000000..34112259f --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/search_term_view_service_grpc_transport.py @@ -0,0 +1,118 @@ +# -*- 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 search_term_view_service_pb2_grpc + + +class SearchTermViewServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services SearchTermViewService 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 = { + 'search_term_view_service_stub': + search_term_view_service_pb2_grpc.SearchTermViewServiceStub( + channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_search_term_view(self): + """Return the gRPC stub for :meth:`SearchTermViewServiceClient.get_search_term_view`. + + Returns the attributes of the requested search term view. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['search_term_view_service_stub'].GetSearchTermView diff --git a/google/ads/google_ads/v1/services/transports/shared_criterion_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/shared_criterion_service_grpc_transport.py new file mode 100644 index 000000000..8fbef63b5 --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/shared_criterion_service_grpc_transport.py @@ -0,0 +1,132 @@ +# -*- 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 shared_criterion_service_pb2_grpc + + +class SharedCriterionServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services SharedCriterionService 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 = { + 'shared_criterion_service_stub': + shared_criterion_service_pb2_grpc.SharedCriterionServiceStub( + channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_shared_criterion(self): + """Return the gRPC stub for :meth:`SharedCriterionServiceClient.get_shared_criterion`. + + Returns the requested shared criterion in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['shared_criterion_service_stub'].GetSharedCriterion + + @property + def mutate_shared_criteria(self): + """Return the gRPC stub for :meth:`SharedCriterionServiceClient.mutate_shared_criteria`. + + Creates or removes shared criteria. Operation statuses are returned. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'shared_criterion_service_stub'].MutateSharedCriteria diff --git a/google/ads/google_ads/v1/services/transports/shared_set_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/shared_set_service_grpc_transport.py new file mode 100644 index 000000000..b311638f4 --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/shared_set_service_grpc_transport.py @@ -0,0 +1,130 @@ +# -*- 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 shared_set_service_pb2_grpc + + +class SharedSetServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services SharedSetService 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 = { + 'shared_set_service_stub': + shared_set_service_pb2_grpc.SharedSetServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_shared_set(self): + """Return the gRPC stub for :meth:`SharedSetServiceClient.get_shared_set`. + + Returns the requested shared set in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['shared_set_service_stub'].GetSharedSet + + @property + def mutate_shared_sets(self): + """Return the gRPC stub for :meth:`SharedSetServiceClient.mutate_shared_sets`. + + Creates, updates, or removes shared sets. Operation statuses are returned. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['shared_set_service_stub'].MutateSharedSets diff --git a/google/ads/google_ads/v1/services/transports/shopping_performance_view_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/shopping_performance_view_service_grpc_transport.py new file mode 100644 index 000000000..9bea796fe --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/shopping_performance_view_service_grpc_transport.py @@ -0,0 +1,119 @@ +# -*- 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 shopping_performance_view_service_pb2_grpc + + +class ShoppingPerformanceViewServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services ShoppingPerformanceViewService 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 = { + 'shopping_performance_view_service_stub': + shopping_performance_view_service_pb2_grpc. + ShoppingPerformanceViewServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_shopping_performance_view(self): + """Return the gRPC stub for :meth:`ShoppingPerformanceViewServiceClient.get_shopping_performance_view`. + + Returns the requested Shopping performance view in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs[ + 'shopping_performance_view_service_stub'].GetShoppingPerformanceView diff --git a/google/ads/google_ads/v1/services/transports/topic_constant_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/topic_constant_service_grpc_transport.py new file mode 100644 index 000000000..8be0e5411 --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/topic_constant_service_grpc_transport.py @@ -0,0 +1,117 @@ +# -*- 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 topic_constant_service_pb2_grpc + + +class TopicConstantServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services TopicConstantService 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 = { + 'topic_constant_service_stub': + topic_constant_service_pb2_grpc.TopicConstantServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_topic_constant(self): + """Return the gRPC stub for :meth:`TopicConstantServiceClient.get_topic_constant`. + + Returns the requested topic constant in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['topic_constant_service_stub'].GetTopicConstant diff --git a/google/ads/google_ads/v1/services/transports/topic_view_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/topic_view_service_grpc_transport.py new file mode 100644 index 000000000..53937bfdf --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/topic_view_service_grpc_transport.py @@ -0,0 +1,117 @@ +# -*- 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 topic_view_service_pb2_grpc + + +class TopicViewServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services TopicViewService 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 = { + 'topic_view_service_stub': + topic_view_service_pb2_grpc.TopicViewServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_topic_view(self): + """Return the gRPC stub for :meth:`TopicViewServiceClient.get_topic_view`. + + Returns the requested topic view in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['topic_view_service_stub'].GetTopicView diff --git a/google/ads/google_ads/v1/services/transports/user_interest_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/user_interest_service_grpc_transport.py new file mode 100644 index 000000000..c373d0429 --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/user_interest_service_grpc_transport.py @@ -0,0 +1,117 @@ +# -*- 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 user_interest_service_pb2_grpc + + +class UserInterestServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services UserInterestService 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_interest_service_stub': + user_interest_service_pb2_grpc.UserInterestServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @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_interest(self): + """Return the gRPC stub for :meth:`UserInterestServiceClient.get_user_interest`. + + Returns the requested user interest in full detail + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['user_interest_service_stub'].GetUserInterest diff --git a/google/ads/google_ads/v1/services/transports/user_list_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/user_list_service_grpc_transport.py new file mode 100644 index 000000000..67b64546b --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/user_list_service_grpc_transport.py @@ -0,0 +1,130 @@ +# -*- 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 user_list_service_pb2_grpc + + +class UserListServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services UserListService 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_list_service_stub': + user_list_service_pb2_grpc.UserListServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @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_list(self): + """Return the gRPC stub for :meth:`UserListServiceClient.get_user_list`. + + Returns the requested user list. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['user_list_service_stub'].GetUserList + + @property + def mutate_user_lists(self): + """Return the gRPC stub for :meth:`UserListServiceClient.mutate_user_lists`. + + Creates or updates user lists. Operation statuses are returned. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['user_list_service_stub'].MutateUserLists diff --git a/google/ads/google_ads/v1/services/transports/video_service_grpc_transport.py b/google/ads/google_ads/v1/services/transports/video_service_grpc_transport.py new file mode 100644 index 000000000..74d1bf976 --- /dev/null +++ b/google/ads/google_ads/v1/services/transports/video_service_grpc_transport.py @@ -0,0 +1,117 @@ +# -*- 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 video_service_pb2_grpc + + +class VideoServiceGrpcTransport(object): + """gRPC transport class providing stubs for + google.ads.googleads.v1.services VideoService 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 = { + 'video_service_stub': + video_service_pb2_grpc.VideoServiceStub(channel), + } + + @classmethod + def create_channel(cls, + address='googleads.googleapis.com:443', + credentials=None): + """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. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return google.api_core.grpc_helpers.create_channel( + address, + credentials=credentials, + scopes=cls._OAUTH_SCOPES, + ) + + @property + def channel(self): + """The gRPC channel used by the transport. + + Returns: + grpc.Channel: A gRPC channel object. + """ + return self._channel + + @property + def get_video(self): + """Return the gRPC stub for :meth:`VideoServiceClient.get_video`. + + Returns the requested video in full detail. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs['video_service_stub'].GetVideo diff --git a/google/ads/google_ads/v1/services/user_interest_service_client.py b/google/ads/google_ads/v1/services/user_interest_service_client.py new file mode 100644 index 000000000..58ffe12ac --- /dev/null +++ b/google/ads/google_ads/v1/services/user_interest_service_client.py @@ -0,0 +1,216 @@ +# -*- 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 UserInterestService 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_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 + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', ).version + + +class UserInterestServiceClient(object): + """Service to fetch Google Ads User Interest.""" + + 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.UserInterestService' + + @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: + UserInterestServiceClient: 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_interest_path(cls, customer, user_interest): + """Return a fully-qualified user_interest string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/userInterests/{user_interest}', + customer=customer, + user_interest=user_interest, + ) + + def __init__(self, + transport=None, + channel=None, + credentials=None, + client_config=None, + client_info=None): + """Constructor. + + Args: + transport (Union[~.UserInterestServiceGrpcTransport, + Callable[[~.Credentials, type], ~.UserInterestServiceGrpcTransport]): 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_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=user_interest_service_grpc_transport. + UserInterestServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.') + self.transport = transport + else: + self.transport = user_interest_service_grpc_transport.UserInterestServiceGrpcTransport( + 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_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. + 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.UserInterest` 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_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, + ) + + 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) 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 new file mode 100644 index 000000000..b287ec011 --- /dev/null +++ b/google/ads/google_ads/v1/services/user_interest_service_client_config.py @@ -0,0 +1,28 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.UserInterestService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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 new file mode 100644 index 000000000..94a0848be --- /dev/null +++ b/google/ads/google_ads/v1/services/user_list_service_client.py @@ -0,0 +1,278 @@ +# -*- 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 new file mode 100644 index 000000000..4fb87944c --- /dev/null +++ b/google/ads/google_ads/v1/services/user_list_service_client_config.py @@ -0,0 +1,33 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.UserListService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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.py b/google/ads/google_ads/v1/services/video_service_client.py new file mode 100644 index 000000000..f862b1bac --- /dev/null +++ b/google/ads/google_ads/v1/services/video_service_client.py @@ -0,0 +1,214 @@ +# -*- 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 VideoService 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 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 + +_GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution( + 'google-ads', ).version + + +class VideoServiceClient(object): + """Service to manage videos.""" + + 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.VideoService' + + @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: + VideoServiceClient: 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 video_path(cls, customer, video): + """Return a fully-qualified video string.""" + return google.api_core.path_template.expand( + 'customers/{customer}/videos/{video}', + customer=customer, + video=video, + ) + + def __init__(self, + transport=None, + channel=None, + credentials=None, + client_config=None, + client_info=None): + """Constructor. + + Args: + transport (Union[~.VideoServiceGrpcTransport, + Callable[[~.Credentials, type], ~.VideoServiceGrpcTransport]): 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 = video_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=video_service_grpc_transport. + VideoServiceGrpcTransport, + ) + else: + if credentials: + raise ValueError( + 'Received both a transport instance and ' + 'credentials; these are mutually exclusive.') + self.transport = transport + else: + self.transport = video_service_grpc_transport.VideoServiceGrpcTransport( + 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_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. + 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.Video` 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_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, + ) + + request = video_service_pb2.GetVideoRequest( + resource_name=resource_name, ) + return self._inner_api_calls['get_video']( + request, retry=retry, timeout=timeout, metadata=metadata) 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 new file mode 100644 index 000000000..c711d6771 --- /dev/null +++ b/google/ads/google_ads/v1/services/video_service_client_config.py @@ -0,0 +1,28 @@ +config = { + "interfaces": { + "google.ads.googleads.v1.services.VideoService": { + "retry_codes": { + "idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"], + "non_idempotent": [] + }, + "retry_params": { + "default": { + "initial_retry_delay_millis": 100, + "retry_delay_multiplier": 1.3, + "max_retry_delay_millis": 60000, + "initial_rpc_timeout_millis": 20000, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 20000, + "total_timeout_millis": 600000 + } + }, + "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 new file mode 100644 index 000000000..a68421ab8 --- /dev/null +++ b/google/ads/google_ads/v1/types.py @@ -0,0 +1,1009 @@ +# -*- 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. + +from __future__ import absolute_import +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 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 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 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_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_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 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 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_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_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 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 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 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 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_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 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 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_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 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 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_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_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 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 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 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 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.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_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_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 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_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 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 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 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_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_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 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_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_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 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 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 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.api import http_pb2 +from google.longrunning import operations_pb2 +from google.protobuf import any_pb2 +from google.protobuf import descriptor_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, + 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, + frequency_cap_pb2, + keyword_plan_common_pb2, + matching_function_pb2, + metrics_pb2, + policy_pb2, + real_time_bidding_setting_pb2, + segments_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_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_payment_model_type_pb2, + app_placeholder_field_pb2, + app_store_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, + call_conversion_reporting_state_pb2, + call_placeholder_field_pb2, + callout_placeholder_field_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_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, + data_driven_model_status_pb2, + day_of_week_pb2, + device_pb2, + display_ad_format_setting_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, + 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, + listing_custom_attribute_index_pb2, + listing_group_type_pb2, + local_placeholder_field_pb2, + location_extension_targeting_criterion_field_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, + 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, + 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_term_match_type_pb2, + search_term_targeting_status_pb2, + served_asset_field_type_pb2, + shared_set_status_pb2, + shared_set_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, + 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_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_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, + media_bundle_error_pb2, + media_file_error_pb2, + multiplier_error_pb2, + mutate_error_pb2, + mutate_job_error_pb2, + new_resource_creation_error_pb2, + not_empty_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, + string_format_error_pb2, + string_length_error_pb2, + url_field_error_pb2, + user_list_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_extension_setting_pb2, + ad_group_feed_pb2, + ad_group_label_pb2, + ad_group_pb2, + ad_parameter_pb2, + ad_pb2, + ad_schedule_view_pb2, + age_range_view_pb2, + bidding_strategy_pb2, + billing_setup_pb2, + campaign_audience_view_pb2, + campaign_bid_modifier_pb2, + campaign_budget_pb2, + campaign_criterion_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, + 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, + 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, + 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, + http_pb2, + operations_pb2, + any_pb2, + descriptor_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_extension_setting_service_pb2, + ad_group_feed_service_pb2, + ad_group_label_service_pb2, + ad_group_service_pb2, + ad_parameter_service_pb2, + ad_schedule_view_service_pb2, + age_range_view_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_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_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, + 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, + 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, + 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/setup.py b/setup.py index 70adff7a1..b80b34353 100644 --- a/setup.py +++ b/setup.py @@ -34,7 +34,7 @@ setup( name='google-ads', - version='0.7.0', + version='1.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 baf9a8988..6690daa79 100644 --- a/tests/client_test.py +++ b/tests/client_test.py @@ -20,16 +20,22 @@ import json import logging from unittest import TestCase +from importlib import import_module import grpc from pyfakefs.fake_filesystem_unittest import TestCase as FileTestCase import google.ads.google_ads.client -import google.ads.google_ads.v0 -from google.ads.google_ads.v0.proto.services import google_ads_service_pb2 -from google.ads.google_ads.v0.proto.errors import errors_pb2 as error_protos from google.ads.google_ads.errors import GoogleAdsException +latest_version = google.ads.google_ads.client._DEFAULT_VERSION +valid_versions = google.ads.google_ads.client._VALID_API_VERSIONS + +errors = import_module('google.ads.google_ads.%s.proto.errors' % latest_version) +error_protos = errors.errors_pb2 +services = import_module('google.ads.google_ads.%s.proto.services' % + latest_version) +google_ads_service_pb2 = services.google_ads_service_pb2 class ModuleLevelTest(TestCase): @@ -284,16 +290,18 @@ def test_load_from_storage_required_config_missing(self): def test_get_service(self): # Retrieve service names for all defined service clients. - service_names = [ - '%s%s' % (name.rsplit('ServiceClient')[0], 'Service') - for name in dir(google.ads.google_ads.v0) - if 'ServiceClient' in name] + for ver in valid_versions: + services_path = 'google.ads.google_ads.%s' % ver + service_names = [ + '%s%s' % (name.rsplit('ServiceClient')[0], 'Service') + for name in dir(import_module(services_path)) + if 'ServiceClient' in name] - client = self._create_test_client() + client = self._create_test_client() - # Iterate through retrieval of all service clients by name. - for service_name in service_names: - client.get_service(service_name) + # Iterate through retrieval of all service clients by name. + for service_name in service_names: + client.get_service(service_name) def test_get_service_custom_endpoint(self): service_name = 'GoogleAdsService' @@ -328,13 +336,23 @@ def test_get_service_invalid_version(self): self.assertRaises(ValueError, client.get_service, 'GoogleAdsService', version='v0_bad') + def test_get_service_with_version(self): + client = self._create_test_client() + try: + client.get_service('GoogleAdsService', version=latest_version) + except Exception: + self.fail('get_service with a valid version raised an error') + def test_get_type(self): - # Retrieve names for all types defined in pb2 files. - type_names = google.ads.google_ads.v0.types.names + for ver in valid_versions: + # Retrieve names for all types defined in pb2 files. + type_path = 'google.ads.google_ads.%s.types' % ver + type_names = import_module(type_path).names - # Iterate through retrieval of all types by name. - for name in type_names: - google.ads.google_ads.client.GoogleAdsClient.get_type(name) + # Iterate through retrieval of all types by name. + for name in type_names: + google.ads.google_ads.client.GoogleAdsClient.get_type( + name, version=ver) def test_get_type_not_found(self): self.assertRaises( @@ -921,7 +939,7 @@ def test_get_request_id_no_id(self): def test_get_google_ads_failure(self): """Obtains the content of a google ads failure from metadata.""" interceptor = self._create_test_interceptor() - mock_metadata = ((interceptor._FAILURE_KEY, self._MOCK_FAILURE_VALUE),) + mock_metadata = ((interceptor._failure_key, self._MOCK_FAILURE_VALUE),) result = interceptor._get_google_ads_failure(mock_metadata) self.assertIsInstance(result, error_protos.GoogleAdsFailure) @@ -929,7 +947,7 @@ def test_get_google_ads_failure_decode_error(self): """Returns none if the google ads failure cannot be decoded.""" interceptor = self._create_test_interceptor() mock_failure_value = self._MOCK_FAILURE_VALUE + b'1234' - mock_metadata = ((interceptor._FAILURE_KEY, mock_failure_value),) + mock_metadata = ((interceptor._failure_key, mock_failure_value),) result = interceptor._get_google_ads_failure(mock_metadata) self.assertEqual(result, None) @@ -955,7 +973,7 @@ def code(self): return grpc.StatusCode.INVALID_ARGUMENT def trailing_metadata(self): - return ((interceptor._FAILURE_KEY, mock_error_message),) + return ((interceptor._failure_key, mock_error_message),) def exception(self): return self